撰写 icenturyw 于 2020年 1月 22日 2020年 1月 22日 Django / Python 解决方案: 在django项目的__init__下输入以下代码: import pymysql pymysql.install_as_MySQLdb()