Work early, eat a meal nothing, and girlfriend with the study of Python.
There are many programming languages, why choose it? Because it is fire, there is nothing to explain, the following start the first step, the environment to build. Online tutorials are too many, various versions of the system, local links to download, there is really fake, messy. This is the official website: https://www.python.org/
I download here is the latest version, about Python2 to Python3 there are many incompatible issues, I think we should not need to worry, because later Python3 is definitely the mainstream, the official will deal with it as soon as possible, so novice learning or start from the Python3.
When you go in, you'll see:
Other don't point, according to this order can, anyway I do, the company computer is Windows7
Download->windows->python 3.6.3
Then start the download.
A few minutes later (the internet is a bit slow), open the download file Python-3.6.3.exe, step by step next will be. However, in order to eliminate the need to configure the environment variable this step, the location tick:
You can then install the path by default, or you can choose to customize the installation, that is, costomize installation, which should not have Chinese in the path. As follows:
Wait a minute. The display, such as Setup was successful, indicates success.
So how do you get this thing running? Over here:
Enter idle, enter, and then come out with something such as:
Complete. The three greater than sign indicates that the program is ready for you to operate. The above is the version information, etc., specifically not explained.
Here is the simple code that my girlfriend knocked out last night, we are beginners, we look at it.
Python 3.6.3 (V3.6.3:2c5fed8, Oct 3, 17:26:49) [MSC v.1900 + bit (Intel)] on Win32type "copyright", "credits" or "Li Cense () "For more information.>>> print (I love you!!) Syntaxerror:invalid syntax>>> print ("I Love your Willie") I love you granville >>> print ("Weiwei") weiwei>> > Print ("I lov" "E you!!") I love you!! >>> print ("I love you!!") I love you!! >>> print ("I lov" + "E Weiwei") I love weiwei>>> print (8) 8=>>> print (8) 8>>> Print (8) 8 >>> Print8+5traceback (most recent): File "<pyshell#9>", line 1, in <module> Print8+5nameer Ror:name ' print8 ' is not defined>>> print (8+5) 13>>> print (8+5) 13>>> print (weiwei*8) Traceback (most recent): File "<pyshell#12>", line 1, in <module> print (weiwei*8) Nameerror:name ' we Iwei ' is not defined>>> print ("Weiwei" *8) weiweiweiweiweiweiweiweiweiweiweiweiweiweiweiwei>>> Print ("weiwei\n" *8) weiweiweiwEiweiweiweiweiweiweiweiweiweiweiweiwei>>>
More knowledge and other tools about Python will continue to be explored later.
This is also my article, take it first, there is no copyright issue.
Http://www.jb51.net/article/129327.htm
Teach a girlfriend to learn Python (a) running environment construction