AttributeError: 'NoneType' object has no attribute 'encoding'
python连接mysql
AttributeError: ‘NoneType’ object has no attribute ‘encoding’
do = pymysql.connect("localhost","root","testdb","test",charset='utf-8')
错误点:charset后的utf-8
j解决方法 :python3中的pymysql连接mysql时charset参数填utf8而非HTML中的charset的参数utf-8
还没有评论,来说两句吧...