Commit b4501691 by BellCodeEditor

save project

parent 7e2688ab
Showing with 18 additions and 0 deletions
def data():
zong=[]
while True:
a=input("输入价格")
if a=="stop":
break
else:
try:
al=int(a)
except:
print("请输入数字!")
else:
zong.append(al)
print(zong)
return(zong)
h=data()
print(h)
\ 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