元素添加元组

python
阅读 48 收藏 0 点赞 0 评论 0

add_tuples.py
def add_tuples(a, b):
    """
    Element-wise addition of tuples
    :param a: tuple
    :param b: tuple
    :return: n-tuple
    """
    return tuple(map(operator.add, a, b))
    
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号