Discuss / Python / 测试

测试

Topic source

def product(x,*kw):

    s = 1

    if x == 0:

        s = 0

    else:

        s = s*x

        for i in kw:

            s = s*i

    return s


  • 1

Reply