Compile Compiling Python source code into bytecode in production environment How To Use python -m compile -h # help python -m compile . -b -f # Compile current directory 编译 将 python 源代码编译成供生产环境使用的机器字节码 如何使用 python -m compile -h # 帮助 python -m compile . -b -f # 编译当前目录