结果是正确的 但是提示说我输出错误
def average(*args): sum = 0.0 i = 0 if len(args) == 0: return 0 else: for x in args: sum = sum + x i = i + 1 return sum/i 这个有问题吗
def average(*args): sum = 0.0 i = 0 if len(args) == 0: return 0 else: for x in args: sum = sum + x i = i + 1 return sum/i 这个有问题吗
2019-03-08
举报