Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the powerful function of Python installation and configuration in practical application?

Shulou Source: shulou.com Published: 2022-06-02 23:36:47 11月14日 Update

This article introduces you to Python installation and configuration in the actual application process of powerful features is how, the content is very detailed, interested friends can refer to, I hope to help you.

Python installation configuration as a computer language commonly used in computer languages, in the actual application process there are still some people on Python installation configuration puzzled.

Simple configuration:

Right-click My Computer-Properties-Advanced-Environment Variables, enter your Python installation configuration location in path, much simpler than java. Mine is E:\Python25; should be the parent directory where pythonw.exe is found.

Test: Create a folder at random, such as creating a text file under d\code\python, and rename it hello.py Enter in the text

print "Hello World"

Go to d\code\python at the command prompt

1. Input

python hello.py

2. Direct input

hello.py

The program will output

Hello World

Let's look at another slightly more complex program, saved as sum.py. The implementation results are:

E:\>python e:\python\sum.py enter the first integer: 8 enter the second integer: 11 The sum is 19 About Python installation and configuration in the actual application process of powerful features is how to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Tags: Configuration input actual process application powerful functional content file text more program computer language help good complex advanced location interest Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn macOS MariaDB Huawei Docker