1.先保证【代码无误】:因为编译成pyc之后就很难看问题了
2.把当前目录下所有的py文件编译为pyc,同时删除版本信息;
python3 -O -m compileall -b .
3.进入代码目录,删除py文件和__pychche__目录
find -name "*.py" | xargs rm
find . -name __pycache__ | xargs rm -rf
4.运行代码
1.先保证【代码无误】:因为编译成pyc之后就很难看问题了
2.把当前目录下所有的py文件编译为pyc,同时删除版本信息;
python3 -O -m compileall -b .
3.进入代码目录,删除py文件和__pychche__目录
find -name "*.py" | xargs rm
find . -name __pycache__ | xargs rm -rf
4.运行代码