python2 下 DBUtils安装与使用
python -m pip install DBUtils==2.0.3

DButils版本:
from versions: 0.8.1, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 1.0, 1.1, 1.1.1, 1.2, 1.3, 1.4, 2.0, 2.0.1, 2.0.2, 2.0.3, 3.0.0, 3.0.1, 3.0.2
from dbutils.pooled_db import PooledDB
def doSql():
sql = 'insert into LyicTable (a,aa,aaa,aaaa,aaaaa) values(%s,%s,%s,%s,%s)'
conn = POOL.connection()
cursor = conn.cursor()
try:
cursor.execute(sql, (a,aa,aaa,aaaa,aaaaa))
conn.commit()
print ({'result': True, 'id': int(cursor.lastrowid)})
except Exception as e:
conn.rollback()
print ({'result':False, 'sql error is :':e})
finally:
cursor.close()
conn.close()

![[python] 使用flask+gunicorn报错Request Line is too large (8192 > 4094) 的解决方法-微慑信息网-VulSee.com](https://vulsee.com/wp-content/uploads/2022/06/ce37969186e9c05aa99dd1970d205a51.png)


![[专辑] 邰正宵《蓝色贝壳》-微慑信息网-VulSee.com](http://bbs.crsky.com/1128632305/Mon_0606/85_121747_96bec32e047ba81.jpg)




![[八卦] 王婷婷—揭秘一个大三女生的性爱录像-微慑信息网-VulSee.com](http://free.86hy.com/crack/pic/1.jpg)
![[随笔]今天国际警察节-微慑信息网-VulSee.com](http://photo.sohu.com/20041017/Img222528326.jpg)

青云网
