我第一次尝试使用easygui,并且一直收到错误消息:
AttributeError:模块'easygui‘没有属性'msgbox’
有什么简单的方法可以解决这个问题吗?
我的代码是
import easygui as eg
eg.msgbox("Hello, world!")发布于 2018-01-19 12:32:00
您的导入声明是错误的。您需要从easygui导入msgbox包。
你可以这样做:
from easygui import* # this will import all the packages from easygui或者像这样:
from easygui import msgbox
msgbox(your message, title)有关更多信息,请参见以下链接:
http://easygui.readthedocs.io/en/latest/tutorial.html#using-easygui
https://stackoverflow.com/questions/37649469
复制相似问题