W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
python_lambda_both.py:
def myfunc(n): return lambda a : a * n mydoubler = myfunc(2) mytripler = myfunc(3) print(mydoubler(11)) print(mytripler(11))