Commit 1b4f6758 by BellCodeEditor

save project

parent 12fa7a93
Showing with 10 additions and 3 deletions
...@@ -7,8 +7,15 @@ def new_inqut(): ...@@ -7,8 +7,15 @@ def new_inqut():
else: else:
try: try:
a=int(unit) a=int(unit)
total.append(a)
except: except:
print("输入整数") print("输入整数")
else:
total.append(a)
finally:
return unit
print(total) print(total)
new_inqut() b=new_inqut()
\ No newline at end of file print(b)
\ 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