Python3操作数据库读取sql语句报错:TypeError: 'NoneType' object is not subscriptable
8importmysql.connectorimportjsonfromMyEncoderimportMyEncoderclassOperationMysql:def__init__(self):self.conn=mysql.connector.connect(host='xxx.xx.xxx.xxx',port=3306,user='xxxxxxxx