Compiling Python

前端 未结 8 824
故里飘歌
故里飘歌 2020-12-29 17:59

How can I compile and run a python file (*.py extension)?

8条回答
  •  佛祖请我去吃肉
    2020-12-29 18:47

    Answer for Windows

    1. first you must install python
    2. then set path variable
    3. after that write your python program and save
    4. think there is a python program that name "hello.py"
    5. open cmd.exe
    6. then goto the path that you saved your "hello.py" file,
    7. and then type python hello.py and press enter key.

    now the python code is automatically compile and show the result.

提交回复
热议问题