摘要: 1、 查看所有数据库的 占用 SELECT TABLE_SCHEMA, concat( TRUNCATE ( sum( data_length ) / 1024 / 1024, 2 ), ' MB' ) AS data_size, concat( TRUNCATE ( sum( index_leng 阅读全文
posted @ 2021-03-19 11:09 做个笔记 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1、创建索引 CREATE INDEX 索引名字 ON `field` ( teable_name ); 2、删除索引 DROP INDEX 索引名字 ON `teable_name`; 3、查询索引 SHOW INDEX FROM `teable_name`; 阅读全文
posted @ 2021-03-19 10:59 做个笔记 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 直接上代码 url = "https://api.mch.weixin.qq.com/v3/certificates" nonce_str = get_nonce_str(32) #生成32位随机数 timestamp = str(int(time.time())) #时间戳 #生成签名,详细查看( 阅读全文
posted @ 2021-03-17 11:32 做个笔记 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 签名串一共有五行,每一行为一个参数。行尾以 \n结束,包括最后一行。如果参数本身以\n结束,也需要附加一个\n。 HTTP请求方法\n URL\n 时间戳\n 随机字符串\n 请求报文主体\n def sign_str(method, url, timestamp, nonce_str, body) 阅读全文
posted @ 2021-03-17 11:17 做个笔记 阅读(278) 评论(0) 推荐(0) 编辑
摘要: from cryptography.hazmat.primitives.ciphers.aead import AESGCM import base64 def decrypt(nonce, ciphertext, associated_data): key = "Your32Apiv3Key" k 阅读全文
posted @ 2021-03-17 11:14 做个笔记 阅读(4695) 评论(0) 推荐(0) 编辑
摘要: pip install aiohttp pip install pycryptodomex #windows环境 准备:已开通移动应用的appid、v3秘匙、证书序列和私匙 微信开放平台:https://open.weixin.qq.com/cgi-bin/index ####一、根据官方文档准备好 阅读全文
posted @ 2021-03-11 11:32 做个笔记 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: %a 英文星期简写 %A 英文星期的完全 %b 英文月份的简写 %B 英文月份的完全 %c 显示本地日期时间 %d 日期,取1-31 %H 小时, 0-23 %I 小时, 0-12 %m 月, 01 -12 %M 分钟,1-59 %j 年中当天的天数 %w 显示今天是星期几 %W 第几周 %x 当天 阅读全文
posted @ 2021-03-01 14:24 做个笔记 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 转载链接:https://blog.csdn.net/senton/article/details/83122174 点的转义:. ==> \\u002E美元符号的转义:$ ==> \\u0024乘方符号的转义:^ ==> \\u005E左大括号的转义:{ ==> \\u007B左方括号的转义:[ 阅读全文
posted @ 2021-02-02 13:19 做个笔记 阅读(2094) 评论(0) 推荐(0) 编辑
摘要: 官方文档:https://tortoise-orm.readthedocs.io/en/latest/ 配置ORM #models.py from tortoise.models import Model from tortoise import fields class User(Model): 阅读全文
posted @ 2021-01-08 16:06 做个笔记 阅读(3515) 评论(0) 推荐(1) 编辑
摘要: 版本: jdk-11 elasticsearch-7.10.0 jieba-7.4.2 下载地址:https://github.com/sing1ee/elasticsearch-jieba-plugin 下载后得到一个v7.4.2.zip包, 随便找个地方解压并进入 jieba-7.4.2目录中。 阅读全文
posted @ 2020-12-31 11:10 做个笔记 阅读(984) 评论(0) 推荐(0) 编辑