📜  python让标签显示多行 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:46.907000             🧑  作者: Mango

代码示例1
from tkinter import *

root = Tk()

label_1 = Label(root, text="line 1 \nline2")
label_1.pack()

root.mainloop()