1 count = 0 2 while count < 10: 3 count += 1 4 if count == 7: 5 pass 6 else: 7 print(count) 转载于:https://www.cnblogs.com/seperinna/p/9506386.html