import py_compile

sourceFile = 'd:/test.py'
targetFile = 'd:/test.pyc'
py_compile.compile(sourceFile, cfile = targetFile)

 

相关文章:

  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
猜你喜欢
  • 2021-11-28
  • 2021-10-08
  • 2021-06-29
相关资源
相似解决方案