Discuss / Python / lambda函数还没讲,第二个函数可以换个写法

lambda函数还没讲,第二个函数可以换个写法

Topic source

def _not_divisible(n): def f_n(x): if x % n > 0: return True return f_n

廖雪峰

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

?


  • 1

Reply