不知道怎么错了
def average(*args):
n=0
temple=0
for name in args:
n=n+1
temple=temple+name
number=temple/n
return number
print average()
print average(1, 2)
print average(1, 2, 2, 3, 4)
def average(*args):
n=0
temple=0
for name in args:
n=n+1
temple=temple+name
number=temple/n
return number
print average()
print average(1, 2)
print average(1, 2, 2, 3, 4)
2019-05-04
举报