What does the python language mainly do?

Release: 2019-07-06 10:59:37
Original
6706 people have browsed it

What does the python language mainly do?

Python is a widely used scripting language. Google's web pages are written in Python. Python has demonstrated powerful functions in many fields such as biological information, statistics, web page production, and computing. Python, like other scripting languages ​​such as Java, R, and Perl, can run scripts directly on the command line.
Methods/steps for programming in Python:
1. First download and install python. It is recommended to install version 2.7 or above and below 3.0. Since version 3.0 or above is not backward compatible, the experience is poor.
2. Open a text editor, recommend editplus, notepad, etc., and save the file in .py format. editplus and notepad support recognizing python syntax.
The first line of the script must be written #!usr/bin/python
Indicates that the script file is an executable python script
If the python directory is not in the usr/bin directory, replace it with the current python executable program Directory.
3. After writing the script, pay attention to debugging. You can use editplus to debug directly. The debugging method can be found on Baidu yourself. After the script is written, open the CMD command line. The premise is that python has been added to the environment variables. If it has not been added to the environment variables, please Baidu.
4. In the CMD command line, enter "python" "space", that is, "python"; drag the script file that has been written to the current cursor position, and then hit Enter to run.

For more Python-related technical articles, please visit the Python Tutorial column to learn!

The above is the detailed content of What does the python language mainly do?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template