-3

如何将我正在处理的 python 脚本以可执行格式保存在特定文件夹中?不允许手动保存。保存代码必须在脚本本身内。提前致谢。

4

1 回答 1

0
with open('myexecutable', 'w') as efile:
    efile.write('all my code goes here')
于 2014-09-07T16:17:05.013 回答