2017-11-24T14:39:29Z||2017-11-24T14:39:29Z
比如让两个tuple相加:
import operator
a = (1,2,3)
b = (4,5,6)
print tuple(map(operator.add, a, b))
结果是
(5, 7, 9)
2017-11-24T14:39:29Z||2017-11-24T14:39:29Z
比如让两个tuple相加:
import operator
a = (1,2,3)
b = (4,5,6)
print tuple(map(operator.add, a, b))
结果是
(5, 7, 9)