from tkinter import *
root = Tk()
text = Text(root,width=20,height=15)
text.pack()
text.insert(INSERT,"Python3 \n") #INSERT索引表示插入光标当前的位置
text.insert(END,"python算法")
mainloop()
Python tkinter如何换行输出到text文本框
最新推荐文章于 2022-12-26 15:06:15 发布
