Compiling Python

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

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

8条回答
  •  旧时难觅i
    2020-12-29 18:42

    python yourfile.py

    You have to have python installed first. It will automatically compile your file into a .pyc binary, and then run it for you. It will automatically recompile any time your file changes.

    http://www.python.org/download/

提交回复
热议问题