pymysql.err.InternalError
错误在这句
self.cursor.execute('INSERT INTO 阳光新闻(编号,内容) VALUES (%s,%s) '% (item[“new_id”],item[“content”]))
原因是在VALUES中的%s都要加 ""才行
个人随笔
pymysql.err.InternalError
错误在这句
self.cursor.execute('INSERT INTO 阳光新闻(编号,内容) VALUES (%s,%s) '% (item[“new_id”],item[“content”]))
原因是在VALUES中的%s都要加 ""才行
个人随笔