Commit 534ddcb8 by BellCodeEditor

save project

parent acf50910
Showing with 20 additions and 0 deletions
def new():
z=[]
while True:
a=input("输入价格 ")
if a=="stop":
break
else:
try:
al=int(a)
except:
print("输入数字")
else:
z.append(al)
print(z)
new()
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