# -*-coding:gbk-*-
python2.7
utf8 转gbk
string="";解码
string_unicode=string.decode("utf-8")
stirng_gbk=string_unicode.encode("gbk");
字符串常用函数
split 分割字符串 为列表
string="a|b|";
string.split("|"),
join 连接字符串数组
print "+".join([‘a‘,‘b‘])连个参数
a+b原文地址:http://9488863.blog.51cto.com/9478863/1775783