新建测试文件easygui.py
import easygui
easygui.msgbox(‘hello world!’)
结果报错AttributeError: module ‘easygui’ has no attribute ‘msgbox’;
原因:测试文件命名为easygui.py首先被命中,改文件名为guitest.py后正常。
新建测试文件easygui.py
import easygui
easygui.msgbox(‘hello world!’)
结果报错AttributeError: module ‘easygui’ has no attribute ‘msgbox’;
原因:测试文件命名为easygui.py首先被命中,改文件名为guitest.py后正常。