跟我一起敲代码 发表于 2021-7-22 16:10:02

easyGUI编程出现问题

抛出的异常
Traceback (most recent call last):
File "D:\下载\python\学习\7.22检测代码量.py", line 39, in <module>
    eg.choicebox(title = '统计结果',msg = '您目前共积累代码%d行,完成进度 %d \n距离十万行还差%d行,请继续加油!' % (All_count_code,achievement,disparity),choices = ['【.py】源文件%d个,源代码%d行' % (file_count_py,All_count_py) ,'【.c】源文 件%d个,源代码%d行' % (file_count_c,All_count_c)]
File "D:\下载\python\lib\site-packages\easygui\boxes\choice_box.py", line 38, in choicebox
    mb = ChoiceBox(msg, title, choices, preselect=preselect,
File "D:\下载\python\lib\site-packages\easygui\boxes\choice_box.py", line 123, in __init__
    preselect_list = make_list_or_none(preselect, cast_type=int)
File "D:\下载\python\lib\site-packages\easygui\boxes\choice_box.py", line 95, in make_list_or_none
    if not isinstance(obj, collections.Sequence):
AttributeError: module 'collections' has no attribute 'Sequence'
这是啥意思,在告诉我GUI的choice_box.py出现问题吗???{:10_300:}

逃兵 发表于 2021-7-22 16:15:05

AttributeError: module 'collections' has no attribute 'Sequence'
AttributeError: 模块“collections”没有属性“Sequence”

qq1151985918 发表于 2021-7-22 16:23:05

collections.abc.Sequence
页: [1]
查看完整版本: easyGUI编程出现问题