摘要:
把一个py文件编译为pyc文件了。(假设在windows环境下)import py_compilepy_compile.compile(r'H:\game\test.py')py_compile.compile('webmail_sina.py') # Linux环境批量生成pyc文件 >>> import compileall>>> compileall.compile_dir(r'/home/codemo/Desktop/python') 阅读全文
posted @ 2012-05-02 10:33
代码示例
阅读(3413)
评论(0)
推荐(0)