摘要: list = [1, 2, 3, 4, 5, 6, 7, 8] a ,*b, c = list print(a) print(b) print(c) 阅读全文
posted @ 2018-07-02 21:28 苦行僧95 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://quke.org/post/django-model-choices.html 转载自:http://quke.org/post/django-model-choices.html 转载自:http://quke.org/post/django-model-choices.ht 阅读全文
posted @ 2018-07-02 20:52 苦行僧95 阅读(1769) 评论(0) 推荐(0) 编辑
摘要: (关于REST框架,a56爆大奖在线娱乐在序列化和反序列化已经介绍过来,这里就不再重复说明) 当a56爆大奖在线娱乐们使用REST框架的时候,视图就由原本的View升级为了APIView, 继承自Django的View 在原来继承django.view.View的时候 如果是get数据,通过request.GET来获取数据 如果是po 阅读全文
posted @ 2018-07-02 16:39 苦行僧95 阅读(315) 评论(0) 推荐(0) 编辑