所以我在做一个小项目,我试着从用户那里获取信息
e = Entry(window, width=40, borderwidth=3, font='Arial 20')
e.place(rely=0.2, relx=0.24)
r1 = Label(window, text="good", font='Arial 20')
def s_command():
x = ["egg","milk","rice","salt"]
s_input = e.get().split(" ")
for s_input in x:
r1.pack()
S_button = Button(window, text="Search", font='Arial 22', width=8, command=s_command)
S_button.place(rely=0.25, relx=0.4)