标签:code style image class 均值 str ima 函数实现 http
def average(*args):
print(args)
# (1, 2, 3)
# (1, 2, 3)
print(len(args))
# 3
# 3
print(sum(args, 0.0) / len(args))
average(*[1, 2, 3])
# 2.0
average(1, 2, 3)
# 2.0
标签:code style image class 均值 str ima 函数实现 http
原文地址:https://www.cnblogs.com/hany-postq473111315/p/12821637.html