为什么我这个代码出的结果明明正确,却提示说运行成功,输出错误(请点进来看一下)
def average(*args):
if len(args) == 0:
return 0
elif len(args) == 1:
return args
else:
return sum(args)*1.0/len(args)
def average(*args):
if len(args) == 0:
return 0
elif len(args) == 1:
return args
else:
return sum(args)*1.0/len(args)
2019-02-16
举报