Commit 4ba8e16b by BellCodeEditor

save project

parent aec5a58e
Showing with 7 additions and 15 deletions
def jiage(): def jiage():
total = [] total = []
while True: while True:
money = input("请输入(Q退出)") unit= input("str")
if money== 'q': if unit== 'q':
break break1
else: else:
try: total.append()
money=int(money) print(total)
except: jiage()
print("请重新输入") \ No newline at end of file
else:
total.append(money)
finally:
print("-"*30)
return total
result=jiage()
print(result)
\ 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