python-small-examples
@author jackzhenguo @desc @date 2019/5/6
86 反转字符串的两个方法
st
=
"python"
方法1:
''
.
join
(
reversed
(
st
))
方法2:
st
[::
-
1
]
[上一个例子](/python-small-examples/md/85.html) [下一个例子](/python-small-examples/md/87.html)