📅  最后修改于: 2022-03-11 14:47:24.151000             🧑  作者: Mango
from tkinter import *
root = Tk()
l1 = Label(root, text="Main Window Label")
l1.pack()
top = Toplevel()
l2 = Label(top, text="Toplevel Window Label")
l2.pack()
top.mainloop()
root.mainloop()