作者:LAMP小白 点击:1701 发布日期:2013-10-15 00:04:41 返回列表
源代码
py位扩展名 不需编译
linux下通常需要制定python的解释器
#!/usr/bin/python
二进制代码
编译之后的python程序 pyc
import py_compile
py_compile.compile(filename)
优化代码
经过优化的原文件 pyo
python -O -m py_compile filename
上一篇:走进Python 下一篇:快递查询API