python2 與 python3中map函數的不一樣

python2中:python map(func,  list)會直接返回一個list對象 可是python3中blog map(func,  list)則只會返回一個map對象class 想要返回list,只能list(map)map 可是!!這個map對象是能夠直接用於列表生成式的:im
相關文章
相關標籤/搜索