Commit 58bf98d8 by BellCodeEditor

save project

parent fb1faabd
Showing with 20 additions and 0 deletions
def new_aa():
a=[]
while True:
went1 = input("请输入价格:(按q退出)")
if went1 == 'q'
break
try:
a = int(went1)
except:
print("请重新输入一个数字")
else:
a.append(a)
finally:
print("-"*30)
return a
print(a)
new_aa()
\ 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