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 ''urls' ('urlname','urlhref') values('Wikipedia','https://en.wikipedia.org/wiki/W' at line 1")
2017-03-03
@老贤
https://github.com/PyMySQL/PyMySQL
PyMySQL的官方文档里的示例,就是 "import pymysql.cursors"
以前看到过相关的问题,刚才找到了。。。
http://stackoverflow.com/questions/14043920/how-can-module-be-visible-from-one-import-and-not-visible-from-another/14044082#14044082
建议还是按官方给的来,用 import pymysql.cursors
https://github.com/PyMySQL/PyMySQL
PyMySQL的官方文档里的示例,就是 "import pymysql.cursors"
以前看到过相关的问题,刚才找到了。。。
http://stackoverflow.com/questions/14043920/how-can-module-be-visible-from-one-import-and-not-visible-from-another/14044082#14044082
建议还是按官方给的来,用 import pymysql.cursors
2017-02-14