字符串逆序
String reverse order
以上为机器翻译结果,长、整句建议使用 人工翻译 。
步长如果为- 1,意思就是倒序读取字符串,所以[:- 1]这个切片就会生成一个逆序的字符串了。
A step size of -1 goes through the word backwards, so the slice [: : -1] generates a reversed string.
youdao
应用推荐
模块上移
模块下移
不移动