编译Python [英] Compiling Python
本文介绍了编译Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何编译和运行python文件(* .py扩展名)?
How can I compile and run a python file (*.py extension)?
推荐答案
python yourfile.py
你必须先安装python。它会自动将您的文件编译为.pyc二进制文件,然后为您运行它。它会在您的文件更改时自动重新编译。
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/
这篇关于编译Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文