Commit 791d4f54 by BellCodeEditor

save project

parent 7eaed43a
Showing with 18 additions and 0 deletions
def new():
t=[]
while True:
u=input("请输入菜的价格:")
if u=="q":
break
else:
try:
u=int(u)
print("*"*30)
except:
print("请输入数字!")
print("*"*30)
else:
t.append(u)
print(t)
new()
print("*"*30)
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