Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 280 Bytes

86.md

File metadata and controls

27 lines (18 loc) · 280 Bytes
@author jackzhenguo
@desc 
@date 2019/5/6

86 反转字符串的两个方法

st="python"

方法1:

''.join(reversed(st))

方法2:

st[::-1]
[上一个例子](85.md) [下一个例子](87.md)