主页
Python
Python statistics.pstdev() 方法
demo_ref_stat_pstdev
运行 ❯
×
更改方向
保存代码
更改主题
# Import statistics Library import statistics # Calculate the standard deviation from an entire population print(statistics.pstdev([1, 3, 5, 7, 9, 11])) print(statistics.pstdev([2, 2.5, 1.25, 3.1, 1.75, 2.8])) print(statistics.pstdev([-11, 5.5, -3.4, 7.1])) print(statistics.pstdev([1, 30, 50, 100]))
3.415650255319866
0.6322358912796886
7.287146217827662
36.09276243237694