"""continue中止本轮循环切入到下一轮循环"""# 需求 输出1-10的所有偶数# 分析 遇到奇数就跳过for i in range(1, 11): if i % 2 == 1: continue print(i)