为什么是len(q),for x in q ,不是len average(*q) 、for x in average(*q)?
def average(*q):
sum = 0.0
if len average(*q) == 0:
return sum
for x in average(*q):
sum = sum + x
return sum / len(average(*q))
为什么这里错了?
def average(*q):
sum = 0.0
if len average(*q) == 0:
return sum
for x in average(*q):
sum = sum + x
return sum / len(average(*q))
为什么这里错了?
2020-03-22
举报