裕~ 发表于 2021-10-29 15:01:58

easygui choicebox报错

import easygui as g
choices = ['愿意','不愿意','有钱的时候就愿意']
reply = g.choicebox('你愿意购买资源打包来支持小甲鱼吗?',choices = choices)

Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
    reply = g.choicebox('你愿意购买资源打包来支持小甲鱼吗?',choices = choices)
File "C:\python\lib\site-packages\easygui\boxes\choice_box.py", line 38, in choicebox
    mb = ChoiceBox(msg, title, choices, preselect=preselect,
File "C:\python\lib\site-packages\easygui\boxes\choice_box.py", line 123, in __init__
    preselect_list = make_list_or_none(preselect, cast_type=int)
File "C:\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'

hrpzcf 发表于 2021-10-29 15:17:35

https://fishc.com.cn/forum.php?mod=viewthread&tid=204504&extra=page%3D1
页: [1]
查看完整版本: easygui choicebox报错