方式是去mysal官网下载mysql-conector-python的程序,之后在下载mysql-connector-python的包,在调用mysql.connector就好用了。