1、由于PEP 488建议淘汰pyo文件,下面不再赘述。
2、编译单文件。
python -m py_compile test.py
3、编译目录下的文件。
python -m compileall D:\test
相关阅读:
2、compileall — Byte-compile Python libraries
*** walker ***
转载于:https://blog.51cto.com/walkerqt/1774340
1、由于PEP 488建议淘汰pyo文件,下面不再赘述。
2、编译单文件。
python -m py_compile test.py
3、编译目录下的文件。
python -m compileall D:\test
相关阅读:
2、compileall — Byte-compile Python libraries
*** walker ***
转载于:https://blog.51cto.com/walkerqt/1774340