AttributeError: 'module' object has no attribute 'showinfo'(已解决)

这是Python 2.x 和Python 3.x 之间的问题。
在Python 3.x 中,可以直接使用messagebox。
在Python 2.x 中,则需要

import tkMessageBox

猜你喜欢

转载自blog.csdn.net/github_38236333/article/details/78802944