定义一个函数:
def a(): print 123 a()
def b(): return ‘123‘ b = b() print b
def c(h1): return 15*h1 c = c(2) print c
def d(h1=2): return 15*h1 d = d() print d
lambda表达式:
fun = lambda x:x*x-X
fun(3)
6
时间: 2024-10-14 18:56:31
定义一个函数:
def a(): print 123 a()
def b(): return ‘123‘ b = b() print b
def c(h1): return 15*h1 c = c(2) print c
def d(h1=2): return 15*h1 d = d() print d
lambda表达式:
fun = lambda x:x*x-X
fun(3)
6