【例】
import tkinter
from tkinter import *
win=tkinter.Tk()
#80x80为窗体大小,10+10为窗口显示位置
#win.geometry('680x380+10+10')
win.title('学生信息')
L1=Label(win, text = ' 学生信息 ',font='Helvetica -28 bold')
L2=Label(win, text = '学号: ',font='song-20',fg='Red')
L3=Label(win, text = '姓名: ', font='song-20')
L4=Label(win, text = '专业: ',font='song-20')
L5=Label(win, text = '语文: ',font='song-20')
L6=Label(win, text = '数学: ',font='song-20')
L7=Label(win, text = '英语: ',font='song-20')
p=1
L1.grid(row =0, column =p)
L2.grid(row =1)
L3.grid(row =2)
L4.grid(row =3)
L5.grid(row =4)
L6.grid(row =5)
L7.grid(row =6)
picname='DD.gif'
photo = PhotoImage(file=picname)
L_Phot = Label(image=photo)
L_Phot.image = photo
L_Phot.grid(row=0,column=2,columnspan=2,rowspan=7)
e1 = Entry(win,width=20,font ='song -20')
e2 = Entry(win,width=20,font ='song -20')
e3 = Entry(win,width=20,font ='song -20')
e4 = Entry(win,width=20,font ='song -20')
e5 = Entry(win,width=20,font ='song -20')
e6 = Entry(win,width=20,font ='song -20')
e1.grid(row=1, column=p)
e2.grid(row=2, column=p)
e3.grid(row=3, column=p)
e4.grid(row=4, column=p)
e5.grid(row=5, column=p)
e6.grid(row=6, column=p)
print(e6.grid(row=6, column=p))
win.mainloop ()

