pack布局的情况下有pack_forget()方法让控件“不再显示”但控件还存在可以再次pack出来 from tkinter import * root = Tk() l1 = Label(root, text='pack_forget') b3 = Button(root, text='按钮') b1 = Button(root, text='隐藏', command=b3.pack_forget) b2 = Button(root, text='显示', command=b3.pack)…