Commit a739410b by BellCodeEditor

save project

parent 0b99ed2f
Showing with 16 additions and 12 deletions
def new_aa():
list = [] jiage=[]
while True: while True:
try: wenti = input("请输入价格,(按q退出)")
a = int(input("请输入:")) if wenti == "q":
except: break
print('请输入数字') try:
else a = int(wenti)
list.append(a) except:
print(list)) print("请重新输入一个数字")
return else
\ No newline at end of file jiage.append(a)
finally:
print("_"*30)
print(jiage)
new_aa()
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