主页
Python
Python statistics 模块
demo_ref_module_statistics_basic
运行 ❯
×
更改方向
保存代码
更改主题
import statistics scores = [85, 92, 78, 90, 88] print(f'Mean score: {statistics.mean(scores)}') print(f'Median score: {statistics.median(scores)}')
Mean score: 86.6
Median score: 88