Commit 6d9335fb by BellCodeEditor

save project

parent 064d37f3
Showing with 10 additions and 5 deletions
total = [] def d():
tot={'糖':2} total = []
def asd():
while True: while True:
unit= input("请输入:") unit= input("请输入:")
if unit== 'q': if unit=='q':
break break
try:
int(input("菜名"))
except:
print("输入菜名")
else: else:
tot['']=unit print("total")
d()
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