运行 ❯
拥有你自己的 Python 服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
# Import statistics Library import statistics # Calculate the mode print(statistics.mode([1, 3, 3, 3, 5, 7, 7, 9])) print(statistics.mode([1, 1, -3, 3, 7, -9])) print(statistics.mode(['red', 'green', 'blue', 'red']))
3
1
red