window = Tk()
window.title('小王咖啡店点单系统')
Label(window,text = '商品名称').grid(row = 1,column = 1)
Label(window,text = '单价 元/杯').grid(row = 1,column = 4)
Label(window,text = '数量').grid(row = 1,column = 7)
for i in range(10):
Label(window,text = order[i]).grid(row = i+2,column = 1)
Label(window,text = str(price[i])).grid(row = i+2,column = 4)
ordered = []
en1 = Entry(window,text = 0,textvariable = IntVar(),width = 3)
en1.grid(row = 2,column = 7)
ordered.append(en1.get())
en2 = Entry(window,text = 0,textvariable = IntVar(),width = 3)
en2.grid(row = 3,column = 7)
ordered.append(en2.get())
en3 = Entry(window,text = 0,textvariable= IntVar(),width = 3)
en3.grid(row = 4,column = 7)
ordered.append(en3.get())
en4 = Entry(window,text = 0,textvariable = IntVar(),width = 3)
en4.grid(row = 5,column = 7)
ordered.append(en4.get())
en5 = Entry(window,text = 0,textvariable = IntVar(),width = 3)
en5.grid(row = 6,column = 7)
ordered.append(en5.get())
en6 = Entry(window,text = 0,textvariable = IntVar(),width = 3)
en6.grid(row = 7,column = 7)
ordered.append(en6.get())
en7 = Entry(window,text = 0,textvariable = IntVar(),width = 3)
en7.grid(row = 8,column = 7)
ordered.append(en7.get())
en8 = Entry(window,text = 0,textvariable= IntVar(),width = 3)
en8.grid(row = 9,column = 7)
ordered.append(en8.get())
en9 = Entry(window,text = 0,textvariable = IntVar(),width = 3)
en9.grid(row = 10,column = 7)
ordered.append(en9.get())
en10 = Entry(window,text = 0,textvariable = IntVar(),width = 3)
en10.grid(row = 11,column = 7)
ordered.append(en10.get())