2019-06-25廖雪峰python函数的参数

def product(x, *args):

    sum = x

    for n in args:

        sum = sum * n

    return sum

你可能感兴趣的:(2019-06-25廖雪峰python函数的参数)