Python中对于字符串的处理及其方便,方便到不需要写循环就可以直接读取子串
如word = "qweasd"如果想要输出“easd”只需print(word[2:])即可
那么有没有方法可以直接倒序输出呢?
输入格式输入一个字符串
输出格式一个倒序的字符串
| 示例 1 | hello | olleh |
word = input() print(word[::-1])



