Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 209 Bytes

File metadata and controls

24 lines (17 loc) · 209 Bytes
@author jackzhenguo
@desc 
@date 2019/5/6

86 反转字符串的两个方法

st="python"

方法1:

''.join(reversed(st))

方法2:

st[::-1]