Python starts from the beginning

Source: Internet
Author: User

Remember that the first blog was written about Python, how to find the second article ran to the list. A bit of a strange feeling. Now learn python from the beginning.

Every programming start is a programming environment, sometimes the configuration of the environment will be programmed to shut the door, some programming environment configuration may be a bit complex, the configuration of Python environment is very simple.

First download the Python installation package file, link address: https://www.python.org/downloads/, and then unzip, install on it. If you want to set an environment variable, put the Python bin file directory in path.

Run the Python interpreter. You can use command line, or you can use the idle (Python GUI) to see your own version of Python. These are not much to say, of course, you can also use Eclipse+python plug-in to develop.

You can write the code in the Python interpreter, write the code first, and then invoke the Python interpreter to execute it. Of course, the saved. py file can be run directly. It's just that if you don't add an input to the code, the result will flash through.

The encoding of the source program, by default, is encoded in UTF-8.

#-*-Coding:encoding-*-

Specifies the encoding of the source program, which must be in the first row or the second line.

Python starts from the beginning

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.