Discuss / Python / 交作业

交作业

Topic source

Wary

#1 Created at ... [Delete] [Delete and Lock User]

def mul(*args):

    if len(args) == 0:

       raise TypeError()

    y = 1

    for i in args:

        y *= i

    return y


  • 1

Reply