![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
wst07261144
这个作者很懒,什么都没留下…
展开
-
Django2.1 QuerySet API参考
(Django)QuerySet API参考原文链接: https://docs.djangoproject.com/zh-hans/2.1/ref/models/querysets/QuerySets什么时候执行在内部,创建、过滤、切片和传递一个QuerySet不会真实操作数据库,在你对查询集提交之前,不会发生任何实际的数据库操作。QuerySet是可迭代的,并且在您第一次迭代它时执...翻译 2019-03-29 20:41:10 · 520 阅读 · 0 评论 -
Django2.1 URL dispatcher
URL dispatcher干净,优雅的URL方案是高质量Web应用程序中的重要细节。 Django允许您根据需要设计URL,没有框架限制。请参阅万维网创建者蒂姆·伯纳斯 - 李(Tim Berners-Lee)的酷URI(Cool URIs),以获得关于为什么网址应该干净且可用的绝佳论据。Overview要设计应用程序的URL,可以创建一个非正式的称为URLconf(URL配置)的Pyt...翻译 2019-03-30 02:22:25 · 346 阅读 · 0 评论 -
Centos6.8 ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
Centos6.8 装 pyenv##安装prenv git clone https://github.com/pyenv/pyenv.git ~/.pyenv echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.b...原创 2019-03-31 14:24:58 · 2807 阅读 · 0 评论 -
Flask1.0 Application Context
Flask Application ContextApplication context 是指在请求,CLI命令或其他活动期间跟踪的应用程序级数据。通过访问current_app 和 g 代理,而不是将 Application 传递给每个函数。这类似于 Request Context,它在Request期间跟踪Request-level数据。 当推送 Request context 时,推送...翻译 2019-04-08 13:19:38 · 239 阅读 · 0 评论 -
Python3.7 的open()方法详解
open(file, mode=‘r’, buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)moder open for reading in text mode(default)w open for writing, truncating(截断) the file first...翻译 2019-04-08 19:35:09 · 4190 阅读 · 0 评论