** python2 python2 -m foo.py 参考:https://www.cnblogs.com/nulige/p/9077069.html python3 ** 如何编译.py文件成.pyc文件 cd /d E:\server\AdServerV2\ExportStatData\pyconfig python3 -O -m compileall -b . 注意最后面有一个点号 参考:https://www.cnblogs.com/tochw/p/14432997.html