如何实现Python中的map函数
>>> def myMap(f,listA):
>>> if listA == []:
>>> return []
>>> return [f(listA[])] + myMap(f,listA[:])
>>>
>>> def add(x):
>>> return x+
>>>
>>> myMap(add,[,,])
>>> [,,]
>>> def myMap(f,listA):
>>> if listA == []:
>>> return []
>>> return [f(listA[])] + myMap(f,listA[:])
>>>
>>> def add(x):
>>> return x+
>>>
>>> myMap(add,[,,])
>>> [,,]