摘要: 列子:GBK 转换为UTF-8: 1.GBK首先解码[decode]为Unicode编码 2.然后Unicode编码[encode]为UTF-8编码 阅读全文
posted @ 2017-09-09 15:11 家阳光 阅读(174) 评论(0) 推荐(0)
摘要: 1 ''' 2 file = open("test",'r',encoding="utf-8") 3 4 'r' open for reading (default) 5 'w' open for writing, truncating the file first 6 'x' create a new fil... 阅读全文
posted @ 2017-09-09 14:30 家阳光 阅读(174) 评论(0) 推荐(0)