摘要: 1 安装python 自动姿势 Chinese # 换成中文 path Autocomplete 路径自动补全 Vetur vue文件补全 配置文件 首选项-设置 应用程序 在 seyying.json中配置 { "editor.minimap.enabled": false, "workbench 阅读全文
posted @ 2020-11-08 15:49 睁yan-ii 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 1 共同页面 <template> <a-menu theme="dark" mode="inline" :default-selected-keys="defaulted"> <a-menu-item key="1"> <a-icon type="user"/> <!-- <a href="">< 阅读全文
posted @ 2020-11-08 15:48 睁yan-ii 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1 连接mysql import pymysql import concurrent coon=pymysql.connect(host='localhost',user='root',password='123456',db='worlflow',charset='utf8',port=3306) 阅读全文
posted @ 2020-11-07 15:25 睁yan-ii 阅读(974) 评论(0) 推荐(0) 编辑
摘要: 1 base64 的基本使用 import base64 with open('../static/upload/63bc620d1594779d6a98c53a3a8db1e5.png','rb') as f: data=f.read() encodesstr=base64.b64encode(d 阅读全文
posted @ 2020-11-07 15:14 睁yan-ii 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 参照地址 https://v3u.cn/a_id_140 1 前端vue上传 # 拖拽上窜 <template> <div> <input type="file" @change="upload_upyun" /> <div class="upload"> 拖拽上传 </div> </div> </ 阅读全文
posted @ 2020-11-07 15:06 睁yan-ii 阅读(255) 评论(0) 推荐(0) 编辑
摘要: # sql 语句执行函数 def get_access(request): uid=request cursor=connection.cursor() cursor.execute("select a.username ,b.role_name,c.node_id,d.node_name from 阅读全文
posted @ 2020-11-02 20:56 睁yan-ii 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 1 创建钉钉三方应用 用Django2.0.4集成钉钉第三方扫码登录 首页 - Python /2019-12-21 钉钉作为阿里旗下的一款免费移动通讯软件,受众群体越来越多,这里我们使用Django来集成一下钉钉的三方账号登录,首先注册钉钉开发平台:https://open-dev.dingtal 阅读全文
posted @ 2020-10-29 21:55 睁yan-ii 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 1 发送脚本 参考地址 https://v3u.cn/a_id_152 # 短信应用SDK AppID appid = 你的appid # SDK AppID是1400开头 # 短信应用SDK AppKey appkey = "你的appkey" # 需要发送短信的手机号码 phone_number 阅读全文
posted @ 2020-10-28 20:39 睁yan-ii 阅读(665) 评论(0) 推荐(0) 编辑
摘要: import hashlib def make_password(password): md5=hashlib.md5() # 实例化 md5.update(password.encode(encoding='utf-8')) # 对·字符转类型加密 encoding=utf-8 为默认的可不写 m 阅读全文
posted @ 2020-10-28 16:59 睁yan-ii 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 登录后在sessionStorage中添加token的值,退出后清空 登录后在sessionStorage中添加token的值,退出后清空 localStorage 和 sessionStorage 属性允许在浏览器中存储 key/value 对的数据。 sessionStorage 用于临时保 阅读全文
posted @ 2020-10-28 16:53 睁yan-ii 阅读(7098) 评论(0) 推荐(0) 编辑