# -*- coding: utf-8 -*- import tkinter as tk root = tk.Tk() root.title("tk1.py") root.geometry('100x100') ##################################### lb = tk.Label(root, text = "這是標籤",\ width = 8, bg='#00ff00') lb.pack(fill = tk.Y, expand = True) ##################################### root.mainloop()