开发者社区 问答 正文

这个用匿名函数怎么写?

def test(all_data):

for data in all_data:
    del data["_sa_instance_state"]

展开
收起
一码平川MACHEL 2019-05-30 14:33:30 1905 分享 版权
1 条回答
写回答
取消 提交回答
  • from functools import reduce

    def test(x):

    del x
    

    map(lambda data, test: test(data), all_date)

    2019-07-17 23:36:23
    赞同 展开评论
问答地址: