随笔分类 -  Python-Modules

Python一些模块的学习
摘要:一. DRF源码的基本 1.1 调用as_view # APIView中调用as_view函数 class APIView(View): @classmethod def as_view(cls, **initkwargs): if isinstance(getattr(cls, 'queryset 阅读全文
posted @ 2021-08-24 00:54 FcBlogs 阅读(64) 评论(0) 推荐(0)
摘要:一. REST规范 Representational State Transfer表现层状态转换,是一种用于创建Web服务的架构模式。而RESTfull服务则是实现该模式的服务-API; 1.1 REST的起源 Roy Fielding在2000年撰写的一篇论文中介绍了REST架构模式;该论文定义了 阅读全文
posted @ 2021-08-19 20:01 FcBlogs 阅读(160) 评论(0) 推荐(0)
摘要:Python的ORM模块Peewee模块 对象关系映射(ORM)是一种面向对象语言访问关系数据库的技术。 一. 简单介绍Peewee peewee是一个简单而小型的Python ORM工具,它支持SQLite, MySQL及PostgreSQL等数据库。 1.1 安装 peewee依赖pymysql 阅读全文
posted @ 2021-03-28 13:01 FcBlogs 阅读(116) 评论(0) 推荐(0)
摘要:pygame简介 Pygame is a set of Python modules designed for writing video games. Pygame adds functionality on top of the excellent SDL library. This allow 阅读全文
posted @ 2020-02-16 14:28 FcBlogs 阅读(367) 评论(0) 推荐(0)