for x in args : 从哪蹦出来个 ‘x’ ?
def average(*args):
sum = 0.0
if len(args) == 0 :
return sum
for x in args :
sum = sum + x
return sum / len(args)
def average(*args):
sum = 0.0
if len(args) == 0 :
return sum
for x in args :
sum = sum + x
return sum / len(args)
2019-09-07
举报