会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
让学习成为一种习惯
博客园
首页
新随笔
联系
订阅
管理
2018年5月18日
torndb在python3中运用
摘要: #连接数据库:db = torndb.Connect()#查询一条的数据get()#查询多行的数据query()#创建数据表,数据库execute()#插入一条数据:sql = "insert into user(username,password) values(%s,%s)"db.insert(sql,"张三","kkk")#一次插入多条数据sql = "insert into us...
阅读全文
posted @ 2018-05-18 14:03 雷神约
阅读(294)
评论(0)
推荐(0)
编辑
公告