pwr
is a function. Even after you map it over a list, pwr
is still a function. map(pwr, range(0, 100))
is the list you want. You can store it in a variable:
powers = map(pwr, range(0, 100))
print powers[2]
return powers
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…