Python3 读取含中文的 ini 配置文件 python3 读取含中文的 ini 配置文件 import configparser # 加载现有配置文件 conf = configparser.ConfigParser() # 含中文用 utf-8-sig,而不是 u ... continue reading python zhuoyuebiji 2018/10/20 1595
Centos7 之 sshd,iptables,firewall,fail2ban 常用操作 SSHD # 在原端口 22 下,新增 sshd 端口 20000,并 开启账号密码登录、开启 root 账号登录 vim /etc/ssh/sshd_config Port 20000 PasswordAuth ... continue reading centos zhuoyuebiji 2019/1/8 1593
Django debug=False 时能找到静态文件的几种方式(静态文件找不到) runserver 模式(临时用) 启动命令:django-admin runserver --insecure --help: --insecure Allows serving static file ... continue reading django zhuoyuebiji 2020/3/1 1589
Fiddler 请求超时的 Session 背景色 显示成 红色 想法 最近突然有个想法,在 Fiddler 里能做到 显示 单个会话的消耗时间,那么我想 超时的会话 背景色 显示成指定的颜色,方便区分。 困难 时间差怎么跟指定数字比较,之前 官网的 消耗时间显示的字符串,不适 ... continue reading 软件测试 zhuoyuebiji 2019/9/30 1571
Django2.2.6 check_password 验证失败解决办法(重设密码) python3.6, django 2.2.6 AUTHENTICATION_BACKENDS 里添加自定义认证 CustomBackend(邮箱、手机号等), 用 python manage.py creates ... continue reading django zhuoyuebiji 2019/10/17 1567
微信 和 QQ 机器人 wxpy:微信机器人 github: https://github.com/youfou/wxpy docs: https://wxpy.readthe ... continue reading 软件测试 zhuoyuebiji 2019/6/13 1563
Pip install pypinyin Killed (djangoblog) [root@taiwan-ss Joyo]# pip install pypinyin Collecting pypinyin Using cached https://files.pythonhost ... continue reading django zhuoyuebiji 2019/7/25 1557
DDR3 内存带宽计算 DIMM:Dual-Inline-Memory-Modules,即双列直插式存储模块。168个引脚,64位。 内存带宽计算公式:带宽=内存核心频率×内存总线位数×倍增系数/8。 ... continue reading 计算机基础 zhuoyuebiji 2019/10/19 1557
Django 组装表名查询数据(动态表名、组合表名) 了解 getattr 函数 教程:https://www.runoob.com/python/python-func-getattr.html 描述 getattr() 函数用于返回一个对象属性值。 ... continue reading django zhuoyuebiji 2019/12/17 1557