Commit 9b406219 by BellCodeEditor

save project

parent 2ec1a4fa
Showing with 7 additions and 4 deletions
...@@ -10,6 +10,10 @@ def k(): ...@@ -10,6 +10,10 @@ def k():
a=int(unit) a=int(unit)
except: except:
print("请输入一个整数哦~") print("请输入一个整数哦~")
total.append(unit) else:
print(total) total.append(unit)
k() finally:
\ No newline at end of file print("-"*30)
return total
result=k()
print(result)
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