Python-day1,
Content of this section:
I. Python introduces python as an interpreted language. It is concise and powerful. Why is it concise? Why is it powerful? I don't know why. I just want to write python.
Ii. Select python 2.1
Installing python is actually installing the python runtime environment, just like installing jdk in java. As there is a large gap between python 2.0 and python 3.0, we recommend that you use python 3.0. Currently, many companies are migrating python code from python 2.0 to python 3.0. Why do you choose python 3.0?
Currently (20180201), the latest version released on the official website is Python 3.6.4,
I personally select the version, new inertia, and the latest low version. There are always many problems with the new version. Let others step on these pitfalls. After they step on, I am, ^_^ security first
2.2 install python
In fact, there is nothing to install python. Just run it directly and remember to change the environment variables. Right-click my computer-advanced system settings-environment variables and add the python installation directory. (This is the same as linux PATH). This is the installation of python in windows.
Then, when installing pycharm, check the environment variable to set it for you.
How can I verify whether the installation is successful?
Windows + r open cmd and enter python, for example:
The installation is successful.
Enter exit () to exit.
3. The first program
What data type and encoding method? I don't care. I will write the first program !!!
1 print ("Hello World! ") # If the printed string needs to be enclosed in quotation marks, what is a string.
(That's right. It's "Hello World". Don't ask me why it's "Hello World". I don't know why. I wrote this in TM subconscious)
Print indicates that the content in the extension number is printed to the screen.
Running result:
Come here first. I want to have a sleep.