1、安装pip2、pip install PyMySQL3、在__init__.py添加如下内容: import pymysql pymysql.install_as_MySQLdb()
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号