s="python"while s!="": for c in s: if c=="t": break print(c,end='') s=s[:-1]输出结果:pypypypypyps="python"while s!="": for c in s: if c=="t": continue print(c,end='') s=s[:-1]输出结果:pyhonpyhopyhpypyp