import sqlite3

#10003[:1]{:2}{2}

db = sqlite3.connect(r'c:\imageDB.db')

cur=db.cursor();

 

db.commit();

try:

cur.execute('insert into cet_t values(?,?)',('title2.jpg',sqlite3.Binary('123'),))

except sqlite3.IntegrityError:

import sys

print sys.exc_info()[0],sys.exc_info()[1]

print 'fuck me!baby'

相关文章:

  • 2022-12-23
  • 2021-11-20
  • 2021-11-20
  • 2021-12-23
  • 2021-11-10
  • 2021-11-20
猜你喜欢
  • 2022-12-23
  • 2021-11-20
  • 2022-02-08
  • 2021-11-20
  • 2022-12-23
相关资源
相似解决方案