If you already have some programming experience, the quickest way to learn a new language is to hold a medium-sized project, to get to know the project again, to read the grammar of the new language, AHA, personal opinion
Today to formally configure the Python development game Kruger Tools Pygame
Introduction to Pygame
①pygame is a set of Python program modules for developing game software, based on SDL library development. Allows you to create rich games and multimedia programs in Python programs, Pygame is a highly portable module that can support multiple operating systems, a cross-platform Python module designed for gaming libraries.
②pygame is the Python wrapper (wrapper) for the SDL library. SDL is a cross-platform library that supports access to computer multimedia hardware (sound, video, input, and so on). SDL is very powerful, but the drawback is that it is based on C language, and C language is more difficult to understand, so we use Pygame.
Come go to start our installation process
(1) Preparation conditions
① Configure the python you are using in the environment variable (this is the point, otherwise you won't be able to play later)
I was installed by default, and the path is C:\Users\haha\AppData\Local\Programs\Python\Python36 to the environment variable .
Note: If you don't know anything about environment variables, Baidu Search, a lot of
② Mount Pip
1 pip Description: Pip is a Python package management tool that is used to install software packages on PyPI and can replace Easy_install tools.
2 "Installation process
Note: Configuring the PIP's environment variable before installing it is a scripts directory below where you install the Python root, with pip some programs
C:\Users\haha\AppData\Local\Programs\Python\Python36\Scripts
(2) Start installation
① began to go to the official website to download Pygame, ( emphasis: You should be based on your own currently installed Python version and then the official website to download the corresponding pygame, can not download and your current Python version does not correspond to the official website has given you Ready ) The official website address is below
http://www.pygame.org/download.shtml
② If your current Python version is 3.4, 3.5,3.6 then please go to the website below to download
http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame https://pypi.python.org/pypi/Pygame
③ Start Installation: If the download is an. exe file, click Install directly, but if. whl files, you need to start a DOS installation
Put your own downloaded. whl file in a full English letter, find PYGAME-1.9.2B8-CP36-CP36M-WIN_AMD64.WHL
In the DOS command window, switch the corresponding path to the path to the file, and then execute the following sentence
python-m pip Install--USERPYGAME-1.9.2B8-CP36-CP36M-WIN_AMD64.WHL
④ The success of the logo, as shown in the figure
The above problem I also struggled for a long time to solve, self-study is here, but I was lucky, accidentally added a python god, in his side bought a lot of Python tutorials, 0 basic entry, the Enterprise combat Development, But what makes me happy is that I have a python game of airplanes, and I've seen all of my problems in front of the screen. SOURCE + screen + Notes + homework, suitable for 0 basic learning. paid to send Oh qq:3372442835 (memo material) information about 2 g of Python Electronic books, popular books are all inside, Python 0 basics, algorithms, artificial intelligence, op-D, testing, large data, etc.
more than 50 g of the classic video tutorials include pytgame game development, reptiles, Python operation, framework development, Python cloud computing, large data, Python enterprise combat development
2018 ~HTML5+CSS3 Video Tutorial (all 227 lectures) (The following picture shows only part of the information), want to be quick.