本文實(shí)例講述了python實(shí)現(xiàn)在sqlite動(dòng)態(tài)創(chuàng)建表的方法。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:
import sqlite3 as dbconn = db.connect('mytest.db')cursor = conn.cursor()cursor.execute("create table person(name text,age text,address text)")print("table created")希望本文所述對(duì)大家的Python程序設(shè)計(jì)有所幫助。
新聞熱點(diǎn)
疑難解答
圖片精選