对python源码进行编译
1.生成.pyc文件 import py_compile py_compile.compile('hello.py')
2.优化源码文件 python -O -m py_compile 1.py 生成.pyo文件
wanyang_wanyang ©著作权
对python源码进行编译
1.生成.pyc文件 import py_compile py_compile.compile('hello.py')
2.优化源码文件 python -O -m py_compile 1.py 生成.pyo文件
上一篇:学习笔记12/26
提供此代码方便自己以后直接查询用,也可以方便其他朋友直接拿来用。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M