Discuss / Python / 练习

练习

Topic source
def mul(*n):    if len(n) <= 0:        raise TypeError('bad operand type')    s = 1    for i in n:        s = s * i    return s

  • 1

Reply