The python code has been written to run: first enter cmd in the file address bar and hit Enter; then enter [python hello.py] in the corresponding directory to run the program.
Related learning recommendations: python tutorial
The python code has written the running method:
1. As shown in the figure below, there is a hello.py file
2. We directly enter cmd in the file address bar above and hit Enter
3. As you can see, we can directly navigate to the corresponding directory.
4. We enter python hello.py to run the program
5. Of course, you can also run it directly hello.py
The above is the detailed content of How to run the python code after writing it. For more information, please follow other related articles on the PHP Chinese website!