n = 1 while n<11: if n==7: pass else: print(n) n = n +1 转载于:https://www.cnblogs.com/huangjinshan/p/6210855.html