AttributeError: 'NoneType' object has no attribute 'encoding'

原因  数据库连接语句哟噗问题

db = pymysql.connect("localhost","root","",charset="utf8")

注意这里是utf8  而不是utf-8

你可能感兴趣的:(爬虫,python)