摘要: Python2.7:字符转UFT-8、GBK、BIG5并得到bytes # encoding: utf-8 def hexstr(s): return ''.join([hex(ord(c)).replace('0x','\\x') for c in s]) # 转big5 def toBig5(s 阅读全文
posted @ 2022-01-18 20:53 整合侠 阅读(371) 评论(0) 推荐(0)