1 2 3 4 5 6 7 8 9 10 11 12 13 | import tkinter as tk root = tk.Tk() # 增加背景图片 photo = tk.PhotoImage(file="背景.png") theLabel = tk.Label(root,text = "我是内容,\n请你阅读",image = photo, compound = tk.CENTER, font = ("华文行楷", 20), fg = "white") theLabel.pack() tk.mainloop() |