上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页
摘要: 记录一次生产环境的redis切换事故 生产环境redis切换,由原来的直连ip服务改为阿里的redis集群,出现了链接失败的错误 org.springframework.data.redis.RedisSystemException: Error in execution; nested excep 阅读全文
posted @ 2022-07-20 21:25 darling331 阅读(11772) 评论(0) 推荐(1) 编辑
摘要: 背景,表格创建时,直接把表格清空,防止历史数据进行干扰新的数据写入 import openpyxl # 保存Excel def saveExcel(codes): sheet_method(['Sheet2']) data = openpyxl.load_workbook("./source_fil 阅读全文
posted @ 2022-06-24 20:51 darling331 阅读(729) 评论(0) 推荐(0) 编辑
摘要: 使用 gunicorn -w 4 -b 0.0.0.0:8080 main:app 运行时,报错 TypeError: __call__() missing 1 required positional argument: 'send' from fastapi import FastAPI app 阅读全文
posted @ 2022-06-13 18:22 darling331 阅读(1142) 评论(0) 推荐(0) 编辑
摘要: python 使用uvicorn运行时报错module 'asyncio' has no attribute 'run' 很大可能是python的版本太低了 因为python3.7 及以后才支持run方法 或者是看一下你的项目文件里是不是命名了一个asyncio.py的文件,和运行的文件冲突了 阅读全文
posted @ 2022-06-13 18:15 darling331 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 进行fastApi开发时,发现源码swagger静态资源访问不到,可能是网址出现了问题宕机了,我们可以有以下几种方式进行处理 源码的请求位置fastapi.openapi.docs.py get_swagger_ui_html https://cdn.jsdelivr.net/npm/swagger 阅读全文
posted @ 2022-06-06 16:19 darling331 阅读(1600) 评论(0) 推荐(0) 编辑
摘要: 详细代码 # -*- ecoding: utf-8 -*- # @ModuleName: test002 # @Function: # @Author: darling # @Time: 2022-06-01 13:46 import os import re import sys import t 阅读全文
posted @ 2022-06-01 01:59 darling331 阅读(572) 评论(0) 推荐(0) 编辑
摘要: show processList; 作为数据库进程查询的利器,有时会,有很多进行在处理,需要通过一定的条件进行筛选, 如果直接使用 where 条件,mysql语法是不支持的,需要使用此语法进行处理 select * from information_schema.processlist where 阅读全文
posted @ 2022-05-31 22:22 darling331 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 本地安装的数据库,忘记了配置文件在哪里了, 可以使用此方式,进行查询 找到安装目录和数据存储目录 select @@basedir select @@datadir 阅读全文
posted @ 2022-05-27 14:07 darling331 阅读(339) 评论(0) 推荐(0) 编辑
摘要: 原理说明 可以代码执行windows按键,然后调用微信程序的快捷键,然后进行发送相关消息,不失于一个批处理程序 ###扩展 可以对程序里面的一些数据进行维护后变更,比如需要批量发送的微信彭勇,用户名,需要发送的内容,可以用表格进行维护后,执行程序取值发送 import time import pya 阅读全文
posted @ 2022-05-25 13:44 darling331 阅读(208) 评论(0) 推荐(0) 编辑
摘要: reverse() 函数 reverse() 函数是列表的一个内置方法,字典、字符串、元组都没有这个内置方法。 只能用于列表中数据的反转,函数对原列表进行修改,不会创建新的对象,可以节省内存 if __name__ == "__main__": a=['a','b',2,3,4] a.reverse 阅读全文
posted @ 2022-05-13 15:29 darling331 阅读(157) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 21 下一页