Commit 0a644759 by BellCodeEditor

save project

parent aba28aa5
Showing with 11 additions and 5 deletions
...@@ -11,7 +11,13 @@ def new_input(): ...@@ -11,7 +11,13 @@ def new_input():
print("请您输入整数。") print("请您输入整数。")
else: else:
total.append(unit) total.append(unit)
return unit return total
print(total)
a=new_input() def som(m):
print(a) c=0
\ No newline at end of file for i in m:
c=c+i
return c
p=new_input()
b=som(p)
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