Commit 9d988e72 by BellCodeEditor

save project

parent a6aa2037
Showing with 16 additions and 8 deletions
def s():
def a():
total = []
while True:
unit= input("请输入:")
if unit== 'q':
money= input("请输入:")
if money== 'q':
break
else:
total.append(unit)
print(total)
s()
\ No newline at end of file
else:
try:
money=int(money)
except:
print("请重型输入")
else:
total.append(money)
finally:
print("-"*30)
return total
b=a()
print(b)
\ No newline at end of file
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