python – Sum of elements stored inside a tuple. You can use map and sum function like this >>> li = [(1, 2), (1, 3), (2, 3)] >>> map(sum, ...
確定! 回上一頁