字符串处理

Python 字符串反转

s = 'hello world'
s = s[::-1]
    

Python Rot13

import codecs

s = codecs.encode('Hello World', 'rot13'))