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