1 i = 1 2 while i < 11: 3 if i == 7: 4 pass 5 else: 6 print(i) 7 i = i + 1 转载于:https://www.cnblogs.com/lym1985/p/9670729.html