帮我看看哪里错了呀
# Enter a code
def average(*args):
sum = 0
if len(args)=0:
return sum
for item in args:
sum =sum+ item
avg = sum / len(args)
return avg
# Enter a code
def average(*args):
sum = 0
if len(args)=0:
return sum
for item in args:
sum =sum+ item
avg = sum / len(args)
return avg
2022-04-27
举报