Jypter 无误;这里会报错
#count计数,后来觉得用len方法就可以了,就注释掉count
def average(*args):
sum = 0
# count = 0
for i in args:
sum += i
# count += 1
return sum / len(args)
#count计数,后来觉得用len方法就可以了,就注释掉count
def average(*args):
sum = 0
# count = 0
for i in args:
sum += i
# count += 1
return sum / len(args)
2019-01-26
举报