Commit f89ad15b by BellCodeEditor

save project

parent fa03b590
Showing with 4 additions and 2 deletions
...@@ -8,7 +8,8 @@ def new_input(): ...@@ -8,7 +8,8 @@ def new_input():
try: try:
unit=int(unit) unit=int(unit)
except: except:
print("请输入整数") print("请输入整数")
total.append(unit) else:
total.append(unit)
print(total) 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