摘要: s = '美丽新世界' s.decode('utf-8')[0:1].encode('utf-8') # 美 # 先转换成unicode,再取子串,然后转换成utf-8 阅读全文
posted @ 2022-08-24 01:04 JeromePowell 阅读(318) 评论(0) 推荐(0) 编辑