python代碼坑點

匿名函數 和 map()函數 b=[1,2,3] a = [10,20,30] lt = list(zip(b,a)) print(lt) # [(1, 10), (2, 20), (3, 30)] mp = map(lambda x_w: x_w[0]*x_w[1], lt ) print(type(mp)) # <class 'map'> print(mp) # <map obj
相關文章
相關標籤/搜索