摘要: !/usr/bin/python2# -*- coding:utf-8 -*-temp = "猪"#解码,需要指定原来是什么编码,解码成Unicodetemp_unicode = temp.decode('utf-8')编码,由unicode编码成gbktemp_gbk = temp_unicode 阅读全文
posted @ 2017-07-24 21:20 大来 阅读(123) 评论(0) 推荐(0) 编辑