How to consistently slice the first and last character of a string in Python 3

前端 未结 0 867
抹茶落季
抹茶落季 2021-01-29 09:43

I need help with writing a loop that can slice through a string, taking away the first and last character. I understand that the slice [0:-1] can target those two positions, but

相关标签:
回答
  • 消灭零回复
提交回复
热议问题