Commit 0b4455ce by BellCodeEditor

save project

parent 84be13b0
...@@ -13,11 +13,11 @@ def new(): ...@@ -13,11 +13,11 @@ def new():
else: else:
total.append(p) total.append(p)
return total return total
new() #new()
def f(l): def f(l):
v=0 v=0
for i in l: for i in l:
v=v+i v=v+i
print(v) print(v)
return v return v
f(total) #f(total)
\ No newline at end of file
import func
j=func.new()
f=func.f(new)
print(f)
\ 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