波斯火车头

python日常小计

1、查看变量类型:  pring type(item)

 

2、解决list中的中文显示乱码

 使用decode('string_escap')将数据库查询返回的将带转义的字节码字符串转换为成utf-8中文

 

posted on 2017-05-19 00:43  波斯火车头  阅读(165)  评论(0编辑  收藏  举报