Commit a739410b by BellCodeEditor

save project

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