列表理解与地图 - List comprehension vs map

问题:

Is there a reason to prefer using map() over list comprehension or vice versa? 有什么理由比列表理解更喜欢使用map() ,反之亦然? Is either of them generally more efficient or considered generally more pythonic than the other? 它们中的一个一般比另外一个效率更高,或者一般被认为比另外一个更Python化吗? python


解决方案:

参考一: https://stackoom.com/question/5EWk/列表理解与地图
参考二: https://oldbug.net/q/5EWk/List-comprehension-vs-map
相关文章
相关标签/搜索