#创建window窗口(GUI)
#基本的四要素:
from tkinter import * #1.导入tkinter模块
root=Tk() #2.创建window窗口对象
root.title('上海立达学院科学数字学院_陌缘君') #3.设置窗口标题
root.geometry('200x300+280+280') #设置窗口大小和定位
root.config(bg='#ccff00')#设置窗口背景
#布局
'''
#1.pack布局
a=tkinter.Label(root,text='陌缘君')#插入文本组件对象
a.pack()#将文本组件布局到窗口
b=tkinter.Button(root,text='上海立达学院')
b.pack(side=tkinter.LEFT)
c=tkinter.Button(root,text='科学数字学院')
c.pack(side=tkinter.RIGHT)
'''
#2.grid布局
L1=Button(root,text='1',width=5,bg='yellow')
L2=Button(root,text='2',width=5,bg='red')
L3=Button(root,text