练习
Topic sourcedef product(args): if len(args) == 0: raise TypeError("bad paramter a!") else: result = 1 for v in args: result = result * v return result
代码复制后,定义的*号没有了
- 1
def product(args): if len(args) == 0: raise TypeError("bad paramter a!") else: result = 1 for v in args: result = result * v return result
代码复制后,定义的*号没有了
荷塘月色09002
def product(args): if len(args) == 0: raise TypeError("bad paramter!") else: result = 1 for v in args: result = result v return result