cx_freeze 帮助 AssertionError
cx_freeze help AssertionError
您好,我正在使用 cx_freeze 2.7 作为我正在学习的教程,每次我使用该程序时,它都会出现 AssertionError。如果有人想看,这是我的 setup.py 文件:
import cx_Freeze
executables = [cx_Freeze.Executable("Slither.py")]
cx_Freeze.setup(
name = "Slither",
options = {"build_exe": {"packages":["pygame"],"include_files": ["apple.png","snakehead.png","funnydog.png"]}},
executables = executables
)
断言错误意味着您 "slither.py" 中的某些断言内容未被断言;为什么不尝试删除该断言行并重试。换句话说,删除所有 assert
关键字行,然后重试。
您好,我正在使用 cx_freeze 2.7 作为我正在学习的教程,每次我使用该程序时,它都会出现 AssertionError。如果有人想看,这是我的 setup.py 文件:
import cx_Freeze
executables = [cx_Freeze.Executable("Slither.py")]
cx_Freeze.setup(
name = "Slither",
options = {"build_exe": {"packages":["pygame"],"include_files": ["apple.png","snakehead.png","funnydog.png"]}},
executables = executables
)
断言错误意味着您 "slither.py" 中的某些断言内容未被断言;为什么不尝试删除该断言行并重试。换句话说,删除所有 assert
关键字行,然后重试。