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