Python-day1,

Source: Internet
Author: User

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.

    

 

 

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.