摘要: ORM基本增删改查操作: 1 # 增 2 models.Tb1.objects.create(c1='xx', c2='oo') 增加一条数据,可以接受字典类型数据 **kwargs 3 obj = models.Tb1(c1='xx', c2='oo') 4 obj.save() 5 6 # 查 阅读全文
posted @ 2017-06-27 22:00 DragonFire 阅读(388) 评论(0) 推荐(0) 编辑