Commit f286a6df by BellCodeEditor

save project

parent 5f1eb5fc
Showing with 4 additions and 7 deletions
...@@ -7,12 +7,9 @@ def new_input(): ...@@ -7,12 +7,9 @@ def new_input():
else: else:
try: try:
asdf=int(unit) asdf=int(unit)
total.append(asdf)
except: except:
print("请输入整数") print("请输入整数")
else:
total.append(asdf)
finally:
return unit
print(total) print(total)
qwer=new_input() new_input()
print(qwer) \ 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