from tkinter import *
a=Tk()
a.title('计算机示例')
a.geometry('300x150+280+280')
a.config(bg='#cc66ff')
L1=Button(a,text='1',width=5,bg='red')
L2=Button(a,text='2',width=5,bg='pink')
L3=Button(a,text='3',width=5,bg='white')
L4=Button(a,text='4',width=5,bg='pink')
L5=Button(a,text='5',width=5,bg='white')
L6=Button(a,text='6',width=5,bg='red')
L7=Button(a,text='7',width=5,bg='white')
L8=Button(a,text='8',width=5,bg='red')
L9=Button(a,text='9',width=5,bg='pink')
L0=Button(a,text='0',width=5,bg='yellow')
Lp=Button(a,text='.',bg=&#
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交