如何解决使脚本中指定的代码可执行
是否可以通过脚本中指定数量的代码创建可执行文件?
例如:
#some code up here to set some things up
def oneFunction(param):
#does something here as well
def run():
varaible1 = input()
oneFunction(variable1)
#more code after this
if something == True:
#some code to create executable from the run function
else:
#do something else
解决方法
您可以使用cx_freeze从py文件创建可执行文件。
https://cx-freeze.readthedocs.io/en/latest/overview.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。