Discuss / Python / 没作业也要交(返回值与返回函数)

没作业也要交(返回值与返回函数)

Topic source

BillCode

#1 Created at ... [Delete] [Delete and Lock User]

def build(x,y):

return lambda:x*x + y*y

def mybuild(x,y):

return x*x + y*y

f1 = build(1, 2) print(f1()) f2 = mybuild(3,4) print(f2)


  • 1

Reply