在与工程名同名目录下的__init__.py中添加下面代码。
__init__.py
# coding: utf-8 import pymysql pymysql.install_as_MySQLdb()
最后更新于4年前
这有帮助吗?