Discuss / Python / 人生苦短,我用Python

人生苦短,我用Python

Topic source

hcie_zpc

#1 Created at ... [Delete] [Delete and Lock User]
def product(*x):
    if x == ():
       raise TypeError('Null')
    sum = 1
    for n in x:
        sum *= n
    return sum


  • 1

Reply