x="62425" print(x[::-1]) X[start:end:span] 遍历 [start,end),间隔为 span,当 span>0 时顺序遍历, 当 span<0 时,逆着遍历。 start 不输入则默认为 0,end 不输入默认为长度。