摘要: #连接数据库: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) 编辑