from tkinter import * #导入tkinter模块
root=Tk() #创建window窗口对象
root.title('计算器示例_2111424王伊雯') #设置窗口标题
root.geometry('200x300+280+280')
root.config(bg='#ccff00')
L1=Button(root,text='1',width=5,bg='#cc1166')
L2=Button(root,text='2',width=5,bg='red')
L3=Button(root,text='3',width=5,bg='blue')
L4=Button(root,text='4',width=5,bg='yellow')
L5=Button(root,text='5',width=5,bg='green')
L6=Button(root,text='6',width=5,bg='red')
L7=Button(root,text='7',width=5,bg='blue')
L8=Button(root,text='8',width=5,bg='yellow')
L9=B