![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
西北苍狼
这个作者很懒,什么都没留下…
展开
-
centos 使用pip 安装mysqldb错误
在centos-6.4上pip install mysql-python,报错如下[sentry@kjtest111 mysql-python]$ pip install mysql-python Downloading/unpacking mysql-python Running setup.py egg_info for package mysql-python sh: /usr/bin转载 2017-04-24 08:27:03 · 1285 阅读 · 0 评论 -
python 八进制转换成中文字符
# coding=utf-8 import chardet a = "\260\332\266\311\311\350\261\270\310\325\326\276\312\325\274\257\304\243\277\351" fencoding = chardet.detect(a) #这行可以判断当前字符串的格式,以便后面设置打印字符的字符编码 print(fencoding) a ...原创 2018-06-26 18:14:42 · 8858 阅读 · 4 评论