Commit 0a644759 by BellCodeEditor

save project

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