Discuss / Python / 作业

作业

Topic source

def mul(*n):

    f=1

    if 0 not in n:

        for x in n:

        # if x != 0:

            f *= x

    else:

        return 0

    return f

F = mul(1,1,2,3,10)

print(F)


  • 1

Reply