手机
当前位置:查字典教程网 >脚本专栏 >python >python实现在sqlite动态创建表的方法
python实现在sqlite动态创建表的方法
摘要:本文实例讲述了python实现在sqlite动态创建表的方法。分享给大家供大家参考。具体实现方法如下:importsqlite3asdbco...

本文实例讲述了python实现在sqlite动态创建表的方法。分享给大家供大家参考。具体实现方法如下:

import sqlite3 as db conn = db.connect('mytest.db') cursor = conn.cursor() cursor.execute("create table person(name text,age text,address text)") print("table created")

希望本文所述对大家的Python程序设计有所帮助。

【python实现在sqlite动态创建表的方法】相关文章:

python三元运算符实现方法

Python调用C/C++动态链接库的方法详解

python实现哈希表

python实现定制交互式命令行的方法

python 不关闭控制台的实现方法

Python常用正则表达式符号浅析

python实现百度关键词排名查询

python实现网页链接提取的方法分享

python3访问sina首页中文的处理方法

python实现sublime3的less编译插件示例

精品推荐
分类导航