python向sqlite插入数据代码演示
import sqlite3 as db conn = db.connect('mytest.db') cursor = conn.cursor() cursor.execute('insert into person values("Mani","23","22,2nd cross, ka")') cursor.execute('insert into person values("Raja","22","5th cross, ka")') conn.close()