Commit a27c06aa by BellCodeEditor

save project

parent 84b2dd19
Showing with 13 additions and 5 deletions
......@@ -2,9 +2,17 @@ def new_input():
total = []
while True:
unit= input("请输入(退出):")
if unit== 'q':
if money== 'q':
break
else:
total.append(unit)
print(total)
new_input()
\ No newline at end of file
try:
money=int(money)
except:
print("重输")
else:
total.append(money)
finally:
print("-"*30)
return total.append(unit)
resule=new_input()
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