摘要: 参考示例 def test(x): return x * 2 mylist = [1, 2, 3, 4, 5] result = list(map(test, mylist)) print(result) 运行结果如下所示: [2, 4, 6, 8, 10] 参考链接 https://www.pro 阅读全文
posted @ 2022-04-23 14:17 胸怀丶若谷 阅读(53) 评论(0) 推荐(0)