Commit 1b006f4b by BellCodeEditor

save project

parent 0898aedb
Showing with 8 additions and 0 deletions
...@@ -5,6 +5,13 @@ def nem(): ...@@ -5,6 +5,13 @@ def nem():
if unit== 'q': if unit== 'q':
break break
else: else:
try:
unit=int(unit)
except:
print("重新输入一个数")
else:
total.append(unit) total.append(unit)
finally:
print("-"*30)
print(total) print(total)
nem() nem()
\ 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