Commit 39021863 by BellCodeEditor

save project

parent 037a76e3
Showing with 8 additions and 1 deletions
...@@ -11,6 +11,13 @@ def a(): ...@@ -11,6 +11,13 @@ def a():
print('请输入数字!') print('请输入数字!')
else: else:
total.append(b) total.append(b)
return a return total
c=a() c=a()
print(c) print(c)
def sum(z)
s=0
for i in z:
s=s+i
return s
h=sum(c)
print(h)
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