运行 ❯
获取您的
个人 Python
服务器
×
更改方向
更改主题,深色/浅色
转到 Spaces
# Import statistics Library import statistics # Calculate the standard deviation from a sample of data print(statistics.stdev([1, 3, 5, 7, 9, 11])) print(statistics.stdev([2, 2.5, 1.25, 3.1, 1.75, 2.8])) print(statistics.stdev([-11, 5.5, -3.4, 7.1])) print(statistics.stdev([1, 30, 50, 100]))
3.7416573867739413
0.6925797186365384
8.414471660973929
41.67633221226008