【发布时间】:2019-05-28 15:21:29
【问题描述】:
我的代码中map()的作用是什么?
squares = list(map(lambda x: x**2, range(10)))
【问题讨论】:
-
阅读docs。
-
除上述文档外,请尝试搜索有关map()函数的问题,例如stackoverflow.com/questions/672172/…
标签: python python-3.x