对python源码进行编译

1.生成.pyc文件
import py_compile
py_compile.compile('hello.py')

2.优化源码文件
python -O -m py_compile 1.py
生成.pyo文件