标签: mysql python-3.x
使用以下代码我无法插入数据。
try: with connection.cursor() as cursor: sql='insert into `quanList` (`Title`) values(%s)' cursor.execute(sql,(getQuan.Title)) connection.commit() finally: connection.close()