pythonHow to run a python program?
Use the python interpreter to run: open the interactive interpreter, Write "print 'hello world'".
Recommended: "Python Tutorial"
Change the file name to "hello.py", "py" is the suffix name .
Open the code you just wrote, click "Run" → "run module", or press "F5" directly to run the code.
Run through Windows command: Find the file "hello.py" and enter "python hello.py" to run the program.
Summarized as follows.
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!