连续处理函数reduce

>>> def operat(x,y):
return x*y

>>> print reduce(operat,(1,2,3,4,5,6,7,8,9,10))
3628800

posted @ 2014-07-05 21:31  kissing狐  阅读(190)  评论(0编辑  收藏  举报