Commit 439b02aa by BellCodeEditor

save project

parent 985d242d
Showing with 7 additions and 2 deletions
...@@ -7,6 +7,10 @@ def new_input(): ...@@ -7,6 +7,10 @@ def new_input():
else: else:
try: try:
unit = int(unit) unit = int(unit)
total.append(unit) except:
print(total) print('请重输')
else:
total.append(unit)
print("-"*30)
print(total)
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