摘要:
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
阅读(369)
评论(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
阅读(1964)
评论(0)
推荐(0)
摘要:
(关于REST框架,我在序列化和反序列化已经介绍过来,这里就不再重复说明) 当我们使用REST框架的时候,视图就由原本的View升级为了APIView, 继承自Django的View 在原来继承django.view.View的时候 如果是get数据,通过request.GET来获取数据 如果是po 阅读全文
posted @ 2018-07-02 16:39
苦行僧95
阅读(329)
评论(0)
推荐(0)

浙公网安备 33010602011771号