2019年08月04日 python单引号“'”的格式问题,插入数据库报错。 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 's*****8)出现这个报错,说明是出现了“'”MYSQL数据无法识别的问题。需要把单引号转为双引号。