摘要: 单表数据库查询 1 def query(request): 2 #1all() 返回的是quertset :以列表的形式存放的对象,默认书名 3 # ret=Book.objects.all() 4 # print(ret)<QuerySet [<Book: GO>, <Book: linux>, 阅读全文
posted @ 2018-10-24 20:21 逆欢 阅读(148) 评论(0) 推荐(0)