2015-09-27 46 views
1

您好我使用cx_freeze 2.7的教程,我下面的每一次我使用的程序,将拿出一个AssertionError时间。这是我的setup.py文件,如果任何人希望看到:cx_freeze帮助Asse田

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 


    ) 

回答

0

断言错误意味着你的“slither.py”一些断言的事情是没有得到断言;你为什么不尝试删除该断言行,然后再试一次。换句话说,删除所有assert关键字行并重试。