Commit a739410b by BellCodeEditor

save project

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