python实现在sqlite动态创建表的方法
作者:work24 时间:2021-08-05 13:54:10
本文实例讲述了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
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python 字符串格式化的示例
2021-01-23 23:33:06
IIS出现Active Server Pages错误“ASP 0201”的修复工具
2009-05-25 18:06:00
如何利用python的tkinter实现一个简单的计算器
2021-09-12 09:19:52
![](https://img.aspxhome.com/file/2023/6/82636_0s.png)
Python Tkinter GUI编程实现Frame切换
2023-05-08 07:36:28
![](https://img.aspxhome.com/file/2023/1/115511_0s.png)
网页特效文字之—压纹字
2023-06-26 19:30:06
![](https://img.aspxhome.com/file/UploadPic/20072/2007231160904s.jpg)
利用python读取YUV文件 转RGB 8bit/10bit通用
2023-09-05 08:33:19
一个asp分页源代码例子
2007-09-19 12:25:00
python去除字符串中的空格、特殊字符和指定字符的三种方法
2022-06-12 20:21:31
![](https://img.aspxhome.com/file/2023/4/106984_0s.jpg)
python 实现目录复制的三种小结
2023-09-01 12:17:20
python面向对象_详谈类的继承与方法的重载
2021-03-21 08:38:18
![](https://img.aspxhome.com/file/2023/3/81673_0s.jpg)
asp+XMLHTTP的国际域名查询系统(whois)源代码
2008-02-16 09:23:00
基于Python计算圆周率pi代码实例
2021-03-06 05:13:17
![](https://img.aspxhome.com/file/2023/4/70244_0s.png)
Javascript世界的最大整数值
2008-06-23 13:23:00
python做接口测试的必要性
2022-06-09 00:05:41
python去掉字符串中重复字符的方法
2022-11-23 09:17:35
如何使用postman(新手入门)
2023-06-12 14:00:31
![](https://img.aspxhome.com/file/2023/6/58166_0s.jpg)
Python的Django框架中的数据过滤功能
2022-02-01 05:48:40
简单介绍一下pyinstaller打包以及安全性的实现
2021-07-23 15:34:56
![](https://img.aspxhome.com/file/2023/8/78718_0s.png)
python读写文件操作示例程序
2021-04-03 13:09:49
python中range()与xrange()用法分析
2021-03-23 00:31:30
![](https://img.aspxhome.com/file/2023/2/97272_0s.png)