b = [3,5,7,9]
def cheng(x,y):
return x*y
for x in itertools.imap(cheng,a,b):
print x
[root@zhu ~]# python zhu.py
6
20
42
72
推荐阅读: