Commit 848bdf08 by BellCodeEditor

save project

parent b537a616
Showing with 13 additions and 13 deletions
def aoligei():
def store():
total = []
while True:
unit=int(input("请输入:"))
if unit== 'q':
money=input("请输入")
if money=="q":
break
else:
total.append(unit)
print(total)
try:
aoligei()
except:
print("错了")
return aoli
aoli=aoligei()
print(aoli)
\ No newline at end of file
try:
money=int(money)
except:
print("请重新输入一个数字")
else:
total.append(money)
print("-"*30)
return total
result=store()
print(result)
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