我运行结果正确但是为什么我有NONE
def average(*args):
y=0.0
s=0.0
b=0.0
if len(args)==0:
return b
for x in args:
y=y+1
s=s+x
b=s/y
print b
print average()
print average(1, 2)
print average(1, 2, 2, 3, 4)
def average(*args):
y=0.0
s=0.0
b=0.0
if len(args)==0:
return b
for x in args:
y=y+1
s=s+x
b=s/y
print b
print average()
print average(1, 2)
print average(1, 2, 2, 3, 4)
2020-05-24
举报