Commit 22b8f1cf by BellCodeEditor

save project

parent 1f320add
Showing with 3 additions and 1 deletions
...@@ -3,7 +3,7 @@ def new_input(): ...@@ -3,7 +3,7 @@ def new_input():
while True: while True:
unit= input("请输入:") unit= input("请输入:")
if unit== 'q': if unit== 'q':
break breakddss
else: else:
try: try:
unit=int(unit) unit=int(unit)
...@@ -14,4 +14,5 @@ def new_input(): ...@@ -14,4 +14,5 @@ def new_input():
finally: finally:
print("*"*25) print("*"*25)
print(total) print(total)
return
new_input() new_input()
\ 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