Teach a girlfriend to learn Python (a) running environment construction

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.