摘要: insert into table_name(sort_type,sort_desc,sort_content,create_time, update_time) VALUES %s ON CONFLICT (sort_type) DO UPDATE SET (sort_desc,sort_cont 阅读全文
posted @ 2022-06-16 18:18 阿磊小哥哥呀 阅读(688) 评论(0) 推荐(0) 编辑
摘要: insert into table_name (uid, user_name, email, department_id, department_name, role_id, is_delete) VALUES (%s, %s, %s, %s, %s, %s, %s) ON DUPLICATE KE 阅读全文
posted @ 2022-06-16 18:17 阿磊小哥哥呀 阅读(511) 评论(0) 推荐(0) 编辑
摘要: http://chromedriver.storage.googleapis.com/index.html 阅读全文
posted @ 2022-05-27 14:15 阿磊小哥哥呀 阅读(185) 评论(0) 推荐(0) 编辑
摘要: pip install pycryptodome 3.9.9 阅读全文
posted @ 2022-04-11 17:42 阿磊小哥哥呀 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://www.cnblogs.com/panpanwelcome/p/14899488.html 1. 把数据类型的数据转化为多行 unnest(anyarray) 2. pgsql解析jsonb格式 fileds = [ {'fileds1': '', 'fileds2': ' 阅读全文
posted @ 2022-04-11 17:22 阿磊小哥哥呀 阅读(122) 评论(0) 推荐(0) 编辑
摘要: export function downloadFile(data, fileName){ const a = document.createElement('a') let href = window.URL.createObjectURL(new Blob(["\ufeff", data], { 阅读全文
posted @ 2022-04-07 11:09 阿磊小哥哥呀 阅读(32) 评论(0) 推荐(0) 编辑
摘要: f = request.files.get("file") f.stream.read() 阅读全文
posted @ 2022-04-07 11:05 阿磊小哥哥呀 阅读(441) 评论(0) 推荐(0) 编辑
摘要: response = make_response('文件二进制') response.headers["Content-Disposition"] = "attachment; filename=%s" % file_name response.headers["Content-type"] = " 阅读全文
posted @ 2022-04-07 11:04 阿磊小哥哥呀 阅读(733) 评论(0) 推荐(0) 编辑
摘要: import pymysqlpymysql.install_as_MySQLdb()from sqlalchemy import create_engine from contextlib import contextmanager engine = cretae_engine('mysql://u 阅读全文
posted @ 2021-12-18 17:48 阿磊小哥哥呀 阅读(57) 评论(0) 推荐(0) 编辑
摘要: jsdom补充document的环境 const jsdom = require("jsdom"); const {JSDOM} = jsdom; const dom = new JSDOM(`<!DOCTYPE html><p>Hello world</p>`, { url: 'https://w 阅读全文
posted @ 2021-11-01 17:47 阿磊小哥哥呀 阅读(1153) 评论(0) 推荐(0) 编辑