Commit 848bdf08 by BellCodeEditor

save project

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