python3 爬虫插入数据报错

报错:

pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1")

原因:

sql 语句换行问题


解决方案:

取消sql语句的换行,再重新格式化代码

猜你喜欢

转载自blog.csdn.net/qq_42142258/article/details/82782357
今日推荐