编写一个循环,提示用户输入一系列的比萨配料,并在用户输入'quit' 时结束循环。每当用户输入一种配料后,都打印一条消息,说我们会在比萨 中添加这种配料。
prompt = "\nPlease input the needs of pizza:"
prompt += "\nEnter 'quit' to end the program"
while True:
need = input(prompt)
if need == 'quit':
break
print("adding "+need)