手机
当前位置:查字典教程网 >脚本专栏 >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实现ftp客户端示例分享

Python获取脚本所在目录的正确方法

python实现巡检系统(solaris)示例

python创建只读属性对象的方法(ReadOnlyObject)

python实现哈希表

python读取注册表中值的方法

python实现随机密码字典生成器示例

Python中使用中文的方法

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

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

精品推荐
分类导航