Home > Backend Development > Python Tutorial > How python runs a python program

How python runs a python program

藏色散人
Release: 2019-10-19 10:40:35
Original
4562 people have browsed it

How python runs a python program

pythonHow to run a python program?

Use the python interpreter to run: open the interactive interpreter, Write "print 'hello world'".

How python runs a python program

Recommended: "Python Tutorial"

Change the file name to "hello.py", "py" is the suffix name .

How python runs a python program

Open the code you just wrote, click "Run" → "run module", or press "F5" directly to run the code.

How python runs a python program

Run through Windows command: Find the file "hello.py" and enter "python hello.py" to run the program.

How python runs a python program

Summarized as follows.

How python runs a python program

The above is the detailed content of How python runs a python program. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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