Discuss / Python / 交作业

交作业

Topic source

sunbably

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

def product(*args):

    if len(args)==0:

        raise TypeError('n')

    s=1

    for n in args:

        s=n*s

    return s


  • 1

Reply