摘要: 代码如下: 第一种方法 scores = [91, 95, 97, 99, 92, 93, 96, 98] avg = sum(scores) / len(scores) print(avg) 结果: 95.125 第二种方法 import numpy print(numpy.mean(scores 阅读全文
posted @ 2021-09-24 15:26 lucky_tomato 阅读(2851) 评论(0) 推荐(0) 编辑