Python Step 1: Getting started with helloworld. First download the latest version of python. Www.python.org. The current version is 3.1.
Next, install python in windows, which is the same as other applications.
In windows, you can use command line or IDLE to develop python. First, we will introduce the command line method: set the PATH and add the python installation PATH to the PATH environment variable. Input python in the command line, and the corresponding version number is displayed and enters the python working environment. The other method is IDLE, which is the development environment installed by default in python.
Next, let's test the most traditional hello world program.
Python is a scripting language. Therefore, it can be run in interactive or file format.
First, introduce the interactive mode: open IDLE and enter the print ('Hello World') command to get the output of Hello world. The command line is the same as this method.
Then, save the python statement to the file and run the python file. In IDLE, select File-> New Window, write the previous python statement in the New Window, and save the File as hello. py. Click run or f5. If you need to run the python file in the command line, use the python command. Go to the directory where the. py file is located and enter python hello. py. Alternatively, you can directly specify the python file path in the command.
In this way, the simple "hello world" is completed and the process continues!
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