Type "help", "copyright", "credits" or "license()" for more information.
>>> s='zhang dong'
>>> for i in range(-1,-len(s)-1,-1):
print(s[i])
g
n
o
d
g
n
a
h
z
>>>
步长为-1
Type "help", "copyright", "credits" or "license()" for more information.
>>> s='zhang dong'
>>> for i in range(-1,-len(s)-1,-1):
print(s[i])
g
n
o
d
g
n
a
h
z
>>>
步长为-1