First, the background of the premise (can be ignored)
Last year in the app track, because to use the trajectory data file (actually is the location of the latitude and longitude of the collection) on the mock tool to play back, but to generate overseas trajectory, Uncle Chun (with me in the same period into the factory, but has 9 years of development experience of the Great God) wrote a script in Python, Automatic generation of overseas trajectory data file (in fact, read the config in advance to write the beginning of the latitude and longitude, by calling Google Maps Web interface automatically generate trajectory data, then write to the file), I opened the Python file, surprised to find that only a short 100 lines of code to realize it! The refinement of programming, let me quickly hold the thigh of the great God, learning Python programming ~ ~ ~
Second, the Python environment installation and configuration
Go to the Python website (https://www.python.org/) and click "Downloads", "Windows"
Click the latest version of the executable installer (which I downloaded as 3.6.1)
Run the downloaded EXE installation file, and remember to tick the add to path option!
Well, the Python environment is already installed, open a command Prompt window, enter Python, and the following message appears, which means that the Python environment is OK.
direct command line write my first Pyhton program Hello python! Enter print directly after >>> (' Hello Python ') and return! The output results are displayed immediately.
Exit Python command mode, under Windows is CTRL + Z, enter can ~
There is an episode, before the spring uncle gave me the data, the code for print ' Hello Python ', the results of the error, I checked, because the tutorial is python2.x, at 3.X, when print became a function, so need to add parentheses. = =
Not to be continued ~
To be continue~
Python Learning record (i)