python 小问题收集
1,python安装sqlclient
yum install python36u python36u-devel yum install gcc mariadb-devel
pip3 install mysqlclient
参考链接:https://www.cnblogs.com/zhangqunshi/p/6646580.html
组件库:https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
======================================================================
2,安装报错:
python读取文件时提示"UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence"
解决办法1.
FILE_OBJECT= open('order.log','r', encoding='UTF-8')
或者:
FILE_OBJECT= open('order.log','rb')
================================================================================