most likely due to a circular import怎么解决
发不了贴?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 , 这个怎么解决 是不是同文件夹内用名叫easygui.py的文件或本身就叫easygui.py 青出于蓝 发表于 2021-7-26 22:30
是不是同文件夹内用名叫easygui.py的文件或本身就叫easygui.py
问题解决了 谢谢 没想到还有这种错误0.0
页:
[1]