12 2020 档案
摘要:参考博客:https://blog.csdn.net/xujin0/article/details/83420633 总结: 0. {% include "xxx"%}是将其他html代码段加入到当前html中,当前html中可能会有好多{% include "xxx"%}, include这部分不
阅读全文
摘要:在django中需要URL 的地方,对于不同层级,Django 提供不同的工具用于URL 反查: 1、在模板中:使用url 模板标签。 2、在Python 代码中:使用 django.core.urlresolvers.reverse() 函数。 3、在更高层的与处理Django 模型实例相关的代码
阅读全文
摘要:第一种 (function checkCookie(){ console.log("hello world!!!!!"); }()) 第二种 (function checkCookie(){ console.log("hello world!!!!!"); })() 第三种 !function ch
阅读全文
摘要:Linux设置自动登录如下: 在CentOS下,我们每次需要用root账号手动登陆,但是再做automation时,我们需要免登录,直接进入OS。 很简单,按图中所示修改配置文件保存并重启,则会免登录. gedit /etc/gdm/custom.conf 在[daemon]下添加: Automat
阅读全文
摘要:PEP 8 -- Python 代码样式指南 https://www.python.org/dev/peps/pep-0008/
阅读全文
摘要:下载安装mingw-get-setup.exe: https://osdn.net/projects/mingw/releases/ 或直接下载:https://osdn.net/projects/mingw/downloads/68260/mingw-get-setup.exe/ https://
阅读全文