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