def product(x): if x == (): raise TypeError('parameter can not be empty') else: num = 1 for a in x: num = num a return num
乘号怎么没了。。
Sign in to make a reply
leisure_cat
def product(x): if x == (): raise TypeError('parameter can not be empty') else: num = 1 for a in x: num = num a return num