im new to Python (version 3.41) and I have a problem with printing the result of using map and filter function. How can I find these results?
>>> def double(n):
return n*2
>>> li = [1,2,3]
>>> map(double, li)
<map object at 0x000000000333DCF8>
>>> print(map(double,li))
<map object at 0x000000000333DC50>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…