Commit e6eea2d1 by BellCodeEditor

save project

parent 6d9335fb
Showing with 15 additions and 0 deletions
def d1_n():
total = []
while True:
unit=input("输入:")
if unit==" ":
break
try:
int(input("菜名"))
except:
print("输入菜名")
else:
total.append(unit)
print(total)
d1_n()
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