
web
BetaGarf
这个作者很懒,什么都没留下…
展开
-
web开发篇(二)
1、web部署简介2、pyramid框架简介6、pyramid框架简介8、web部署简介原创 2019-11-17 10:39:39 · 202 阅读 · 0 评论 -
Python使用线程模块定时执行任务,及时清理数据库
文章目录项目需求数据库只保存两天的数据,需要定时清理。本文程序设定每天凌晨3点定时清理数据库,使用threading模块另起线程。import threadingimport datetimedef suspect_current_clear(): from app.db.db import MySql db = MySql() date = datetime.da...原创 2019-07-15 11:48:36 · 908 阅读 · 2 评论 -
Pychram Run和Debug按钮为灰色,不能运行。
文章目录1、配置python interpreter2、配置Configurations1、配置python interpreterpython interpreter 配置2、配置ConfigurationsPychram Run/Debug Configurations原创 2019-07-14 10:29:23 · 1679 阅读 · 0 评论 -
PyChram Pyramid工程编辑Run/Debug Configurations
文章目录1、Edit Configurations2、新建Pyramid server Configurations3、新建 python test configurations->pytest4、配置configurations1、Edit Configurations2、新建Pyramid server Configurations1、命名2、配置文件路径3、python i...原创 2019-07-14 10:23:27 · 891 阅读 · 0 评论 -
Postman通过json数据格式发送请求
文章目录1、设置步骤2、Headers会增加Content-Type3、body编辑请求参数1、设置步骤1、选择body2、选择raw3、选择json2、Headers会增加Content-Type3、body编辑请求参数...原创 2019-06-28 18:10:30 · 3144 阅读 · 0 评论 -
Postman设置全局变量
文章目录一、postman添加全局变量二、Postman全局变量动态赋值1、用户登陆给全局变量token赋值一、postman添加全局变量1、打开设置2、点击Add添加3、设置具体的变量二、Postman全局变量动态赋值1、用户登陆给全局变量token赋值在test中写入下面的代码var data = JSON.parse(responseBody);if (data.u...原创 2019-06-28 17:56:52 · 3948 阅读 · 0 评论 -
Pychram加载第三方模块
文章目录一、Pychram自带的安装包管理工具安1、File->Setting->projecter2、搜索缺少的第三方模块二、cmd安装(网络环境不佳情况使用)1、pillow模块安装(清华镜像)2、[清华大学pip镜像](https://mirrors.tuna.tsinghua.edu.cn/help/pypi/)3、[西电pip镜像](https://linux.xidian....原创 2019-06-28 16:59:26 · 477 阅读 · 0 评论 -
Pychram Pyramid学习笔记
文章目录1、git pull dev2、用app替换emotion3、配置venv和python interpreter4、Shift+Alt+F105、Shift+Alt+F10切换到zy-customs-console运行6、7、允许公网访问1、git pull dev2、用app替换emotiondevelopment.ini,MANIFEST.in,production.ini,...原创 2019-07-04 10:08:51 · 549 阅读 · 0 评论 -
解决Pycharm "No Python interpreter configured for the project "问题
文章目录一、Pychram python解释器配置1、找到python interpreter2、添加python interpreter3、选择安装好的python interpreter4、如果无法保存,可以删除所有invalid的python interpreter问题是由于Pychram python解释器没有配置出错导致的一、Pychram python解释器配置1、找到pytho...原创 2019-06-28 16:36:06 · 23646 阅读 · 0 评论 -
Pychram主题设置
文章目录一、Pychram主题设置1、快捷键Alt+Ctrl+S或者File菜单打开Setting2、Appearance&Behavier->Theme3、Editor->Font一、Pychram主题设置1、快捷键Alt+Ctrl+S或者File菜单打开Setting2、Appearance&Behavier->Theme推荐选择深黑色、护眼、美观的...原创 2019-06-28 15:02:59 · 758 阅读 · 0 评论 -
Pychram安装和使用的简易教程
Pychram是由Jet Brains打造的一款强大的python IDE,具有跨平台性。鉴于目前网上的Pychram安装教程鱼龙混杂,于是将自己安装和使用Pychram的心得总结供大家参考。原创 2019-06-28 11:17:03 · 9174 阅读 · 2 评论 -
python 二次加密需要注意的问题
文章目录1、二次加密算法2、MD5加密3、生成salt4、hashlib库1、二次加密算法为了保证加密性,一般都会加盐(随机数)二次加密MD5_password = MD5[MD5[password]+salt]2、MD5加密MD5加密需要导入hashlib库import hashlibdef gen_md5(password): """获取MD5算法对象""" m...原创 2019-07-08 22:27:36 · 656 阅读 · 0 评论 -
web开发篇(一)
web开发篇(一)1、postman教程2、Python的json不能序列化datetime类型数据问题3、python字典for循环4、mysql读取、存储图片(BLOB)5、SQL基础教程原创 2019-06-27 21:59:00 · 669 阅读 · 0 评论