你题目的解答代码如下:
import numpy as np list1 = [1,2,3,4,5,6,7,8,9,10] avg = sum(list1) / len(list1) print(avg) print(np.mean(list1))
如有帮助,望采纳!谢谢!