提交 faa14636 编写于 作者: qfcy_'s avatar qfcy_

Update compile.py

上级 0976d0f9
......@@ -11,6 +11,10 @@ if len(sys.argv) > 1:
shutil.copy(pycfile, os.path.splitext(filename)[0]+".pyc" )
print('复制 {} 到 {}'.format(pycfile,
os.path.splitext(filename)[0]+".pyc"))
elif os.path.isdir(filename):
import compileall
compileall.compile_dir(filename, maxlevels=50) # optimize=1
print('已编译文件夹 ' + filename)
else:
print("欢迎使用",__doc__,end='\n\n')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册