摘要: 一:匿名函数的使用: 1)匿名函数的定义 # 常规的函数定义def func(x): return x * 2# 匿名函数的定义func1 = lambda x: x * 2print(func(2))print(func1(2)) 2)匿名函数的应用: def work(x): return x[ 阅读全文
posted @ 2021-08-13 10:56 1142783691 阅读(58) 评论(0) 推荐(0) 编辑