Two ways to run Python

Source: Internet
Author: User

From May 19, 2015 registered Blog Park, determined to write a blog, the way to record their own programming points drip, because they are too lazy, has been dragged to the present, "procrastination" is the disease to change, today finally wrote their first blog, a little excited!

Python was invented by Guido van Rossum at the end of 1989, and during the Christmas of 1989, in Amsterdam, Guido was determined to develop a new scripting interpreter, as an inheritance of ABC language, in order to get rid of the boredom of Christmas. Python was chosen as the name of the program because he was a fan of the comedy community called Monty Python. Foreign people are wayward, to pass Christmas is to write code, move bricks! To get to the top, Python has two main ways of running, one interactive (using a prompt interpreter) and one using the source file:

Method One: Type python in the Windows command-line window (before you have to install Python and configure path) to run the effect:

  

Write down your first Python program, output Hello world!

  

Method Two: After installing Python, it will bring an idle editor, open the editor, create a new file, write the first Python program!

  

Save the file and place it under a path, open the Windows command line, and switch to the path where you saved the source file, and enter the Python file name. py

  

You can also run directly from the run module under the run of the idle editor!

  

Two ways to run Python

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.