Commit 46c79f32 by BellCodeEditor

save project

parent c7d0720d
Showing with 6 additions and 6 deletions
...@@ -6,15 +6,15 @@ def new_input(): ...@@ -6,15 +6,15 @@ def new_input():
break break
else: else:
try: try:
money = int(money) money = int(money)
except: except:
print("请输入一个数字") print("请输入一个数字")
else: else:
total.append(money) total.append(unit)
finally: finally:
print("-"*30) print("-"*30)
return total return total
result = new_input() resturn = new_input()
print(result) print(return)
\ No newline at end of file \ 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