2 Respostas
+ 2
thanks dear
+ 1
pip install PyMySQL
import pymysql from pymysql.cursors import DictCursor connection = pymysql.connect( host='localhost', user='user', password='password', db='iata', charset='utf8mb4', cursorclass=DictCursor ) ... connection.close()