![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
Leo_Xu06
深度厌学中...
展开
-
python中文编码问题(decode('gbk').encode('utf-8')和decode('utf-8').encode('gbk')这对好基友)
python中文编码问题(decode('gbk').encode('utf-8')和decode('gbk').encode('utf-8')这对好基友)原创 2016-11-18 16:11:37 · 34597 阅读 · 2 评论 -
linux系统下pip不能更新问题解决
linux系统下pip不能更新问题解决,python setup.py egg_info" failed with error code 1 ,Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /us原创 2017-12-20 17:39:14 · 5835 阅读 · 0 评论 -
爬虫常用的正则表达方式
python里的正则化库re,使用方法:import reline = 'boooooobby123'regex_str = "^b.*3$"re.match(regex_str, line)正则化用到的特殊字符^ $ * ? {2} {2, } {2,5} |[][^] [] [^] [a-z]\s \S \w \W[\u4E00-\u9FA5] () \d...原创 2018-06-13 17:00:48 · 1162 阅读 · 0 评论 -
keras 或 tensorflow 调用GPU报错:Blas GEMM launch failed
GPU版的tensorflow在模型训练时遇到Blas GEMM launch failed错误,或者keras遇到相同错误(keras 一般将tensorflow作为backend,如果安装了GPU版本的tensorflow,那么在使用keras时会优先使用GPU),类似报错如下:InternalError (see above for traceback): Blas GEMM launc...原创 2018-08-24 17:52:54 · 40893 阅读 · 16 评论