Python learning 01, python01

Source: Internet
Author: User

Python learning 01, python01
Python download, installation, editor, first program

1: python 3.6.3 (the latest version) can be directly downloaded from the python official website (windows version): https://www.python.org/downloads/windows /.

2: directly install python in windows, configure the python environment variables, and enter python in cmd to write the python program. For more information, see http://www.cnblogs.com/programmer-tlh/p/5733279.html.

3: editor I chose here with Pycharm (https://www.jetbrains.com/pycharm/), you can also use eclipse but need to install plug-ins (http://www.cnblogs.com/Devopser/p/6423633.html), I personally recommend using Pycharm, because the eclipse plug-in is not very useful in prompts and completion, I personally do java Development and now basically don't need eclipse, and I started to use Intellij idea editing tool, which is also very useful, it depends on everyone's habits.

4: Pycharm basic usage

4.1: first, select "Pure Python" for "file-newProject", "Location" as the project storage address, and "Interpreter" as the python version of the compilation program. Of course, you can configure multiple python compilers, when you click create, you will be prompted to create a new workspace and a new workspace.

4.2: Right-click the project you just created and select new-Python file. Now you can write python code.

5: the first program (Hello world)

Print ("Hello World ");

Right-click run to run the program. The console will output Hello World
Let's talk about python2.7.

Print "Hello World ";

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.