1.是否连接池参数名或参数是否正确。
2.def __init__(self, pool): self.pool = pool
函数名是不是写成 int
3.写sql时候是否出现中文括号(一开始写成中文括号,找半天问题!这一定要注意)
sql = """
insert into tb_info (id, title, genre)
values (%s, %s, %s)
"""
cursors.execute(sql, (item['id'], item['title'], item['genre']))