马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
import easygui as f
choices=["*用户名","*真实姓名","固定电话","*手机号码","QQ","*E-mail"]
user_date=f.multpasswordbox(msg="【*真实姓名】为必填项。\n【*手机号码】为必填项。\n【*E-mail】为必填项。",title="账户中心",fields=choices)
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import easygui as f
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\easygui.py", line 3, in <module>
user_date=f.multpasswordbox(msg="【*真实姓名】为必填项。\n【*手机号码】为必填项。\n【*E-mail】为必填项。",title="账户中心",fields=choices)
AttributeError: partially initialized module 'easygui' has no attribute 'multpasswordbox' (most likely due to a circular import)
无论怎么导入easygui都会显示上述错误,不导入的话就显示 name 'f' is not defined , 这个怎么解决 |