def product(*input): if len(input) == 0 or not isinstance(input[0],(int,float)): raise TypeError else: n = 1 for x in input: n = n * x return n
Sign in to make a reply
广州机电16机器人高职一班