依次删除最后一个字符.py 76 B

12345
  1. s="python"
  2. while s!="":
  3. for c in s:
  4. print(c,end="")
  5. s=s[:-1]