Commit 17891d60 by BellCodeEditor

save project

parent 024fb164
Showing with 10 additions and 9 deletions
total = [] def count():
while True: total = []#收集菜品价格
unit= input("请输入:") while True:
if unit== 'q': price= input("请输入价格:") #在控制台输入价格
break if price=='q':
else: break
total.append(unit) total.append(price)
print(total) print(total)
\ No newline at end of file count()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment