Python Learning 01

Source: Internet
Author: User

python download, install, editor, first program

1:python with the 3.6.3 version (currently the latest version) can be downloaded directly from the Python official web (Windows version): https://www.python.org/downloads/windows/.

2:windows environment Python directly installed, and then configure the Python environment variables, through the cmd input python into the can write Python program, please refer to this link: 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 the use of Pycharm, because the eclipse plugin is not very useful in the hints and complements, I personally do Java development now basically no eclipse, and began to use the IntelliJ idea editing tools, is also very useful, or to see everyone's personal habits

4:pycharm Basic Use

4.1: First new project point solution File-newproject Choose Pure python,location for the project to store the address, interpreter for the compiler Python version, of course, can configure multiple Python compiler, Click Create at this time there will be a hint is in a new workspace and is now the work space, everyone's choice is good, I was new.

4.2: Right-click the project you just built, choose New-python file, this time you can write Python code.

5: The first program (Hello World)

Print ("Hello World");

Right-click to run the program and the console will output Hello World
Here, say something about python2.7.

print "Hello World";

  

Python Learning 01

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.