python 多維數組相加

lst=[(12, 33, 56), (11, 3, 9), (45, 0, 21),(1,2,3)] b = lambda lst :[sum(i) for i in (list(zip(*lst)))] print "b ============",b(lst)
相關文章
相關標籤/搜索