Powerful Python installation and configuration in practical application

Source: Internet
Author: User

Python installation configuration is a commonly used computer language in computer languages. In actual application, there are still some questions about Python installation configuration, the following is a detailed description of the actual application solution. I hope you will gain some benefits.

Simple Configuration:

Right-click my computer-properties-advanced-environment variables and enter your Python installation configuration location in path, which is much simpler than java. My E: \ python25133 should be the parent level directory of pythonw.exe.

Test: Create a folder. For example, create a text file under d \ code \ python and change it to hello. py. Enter

 
 
  1. print "Hello World"  

Go to the d \ code \ python path at the command prompt

1. Input

 
 
  1. python hello.py  

2. input directly

 
 
  1. hello.py  

The program will output

 
 
  1. Hello World 


Let's look at another slightly complicated program. Save it as sum. py. The execution result is:

 
 
  1. E:\>python e:\python\sum.py  
  2. enter the first integer:  
  3. 8  
  4. enter the second integer:  
  5. 11  
  6. The sum is 19  

The above article is a detailed introduction to the actual application operation solution for installing and configuring Python.

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.