新知识点
解码:decode()
编码:encode()
#!/usr/bin/env python # -*- coding:utf-8 -*- tmp = "黄松涛" jiema = tmp.decode('utf-8') bianma = jiema.encode("gbk") print(bianma)