how to change ith letter of a word in capital letter in python?

后端 未结 0 729
逝去的感伤
逝去的感伤 2020-12-31 12:05

I want to change the last-second letter of each word in capital letter. but when my sentence contain of a word with one letter the program gives an error of (IndexError: str

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