摘要: 实际案例:统计分数范围​ 假设我们有一组学生的分数,我们希望统计在不同分数范围内的学生人数。​​ scores = (85, 92, 78, 95, 88, 60, 72, 98, 83, 75) count_low = sum(1 for score in scores if score < 70 阅读全文
posted @ 2024-03-25 20:14 szmtjs10 阅读(5) 评论(0) 推荐(0) 编辑