https://www.cnblogs.com/sheng-yang/p/10596947.html
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 30 15:30:25 2019
@author: Administrator
"""
import tkinter
import tkinter.messagebox
top = tkinter.Tk()
L1 = Label(top, text = "姓名:")
L1.pack(side = LEFT)
E1 = Entry(top, bd=5)
E1.pack(side = RIGHT)
#进入消息循环
top.mainloop()