Commit 4ba8e16b by BellCodeEditor

save project

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