python之字符串处理

>>> s = "中英文abc"
>>> s
'中英文abc'
>>> s[2:4]
'文a'
>>>

 

很奇怪,呵呵,不过这倒是也好,省得类似php的mb_string了

你可能感兴趣的:(PHP,python,String)