str1='abcd' print(str1[::-3]) print(str1[-1::-1]) print(str1[::-1]) 输出: da dcba dcba 可以看到步长为负时无论是否指定起始下标为-1都是一样的。