t = tk.Text(window,height=7,width=36,font=('微软雅黑',40)) t.place(relx=0.1,y=200)
要设置一下 justify 的对齐方式
t = tk.Text(window, height=7, width=36, font=('微软雅黑',40), justify='center') t.place(relx=0.1, y=200)