如何解决错误“在python中没有名为stastics的模块”?

时间:2019-08-30 06:12:25

标签: python-3.x

我已经尝试过该程序,但出现错误,没有属性错误?

import statistics

data = [11, 21, 11, 19, 46, 21, 19, 29, 21, 18, 3, 11, 11]

x = statistics.mean(data)
print(x)

y = statistics.median(data)
print(y)

z = statistics.mode(data)
print(z)

0 个答案:

没有答案