from tkinter import * #编写窗口 col1 = 'yellow' w = Tk() w.config (width=550, height=550, bg=col1) w.mainloop()