s = "PYTHON"while s != "" :for c in s :if c == "T" :breakprint(c, end="")s = s[:-1]
五个PY和一个P
不懂这个结果,我的理解是PYTHONPYTHOPYTHPYTPYP
格式明显错误