|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
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'
https://fishc.com.cn/forum.php?mod=viewthread&tid=204504&extra=page%3D1
|
|