我懂了:
#slicing: [start:end:step]
s = 'I am not the Messiah'
#s[0::-1] = 'I'
Run Code Online (Sandbox Code Playgroud)
所以在这种情况下
start=0, end=0, step=-1
Run Code Online (Sandbox Code Playgroud)
为什么是
s[0::-1] == 'I'
>>>> True
Run Code Online (Sandbox Code Playgroud)