Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将我正在处理的 python 脚本以可执行格式保存在特定文件夹中?不允许手动保存。保存代码必须在脚本本身内。提前致谢。
with open('myexecutable', 'w') as efile: efile.write('all my code goes here')