摘要: Python 的 apscheduler 今天出现 skipped: maximum number of running instances reached (1) 问题产生的原因: 前一个任务未完成, 在只有一个线程的情况下,max_instances 默认值为 1 解决方法: 调整APSched 阅读全文
posted @ 2024-05-13 23:39 慕尘 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 今天将程序部署到服务器,遇到 mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported 问题产生的原因: 从MySQL 8.0开始,默认的用户认证插 阅读全文
posted @ 2024-05-13 23:25 慕尘 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 在Java中想进行下面的查询,不想写循环一条条查 select id,name,address,age from users where name='A' and address='addr1' select id,name,address,age from users where name='B' 阅读全文
posted @ 2024-05-11 23:27 慕尘 阅读(34) 评论(0) 推荐(0) 编辑
摘要: RAG(Retrieval-Augmented Generation)模型是一种结合了检索和生成的深度学习模型 主要由两部分组成:检索模块和生成模块 检索模块负责从知识库中检索出与输入相关的信息 生成模块则根据检索到的信息生成输出 应用领域:问答系统,文档摘要和推荐任务,对话系统,文本翻译等 阅读全文
posted @ 2024-04-28 13:22 慕尘 阅读(19) 评论(0) 推荐(0) 编辑
摘要: spaCy是一个基于Python编写的开源自然语言处理库。 基于自然处理领域的最新研究,spaCy提供了一系列高效且易用的工具,用于文本预处理、文本解析、命名实体识别、词性标注、句法分析和文本分类等任务。 安装 pip install spacy 查看版本 import spacy print(sp 阅读全文
posted @ 2024-04-25 13:22 慕尘 阅读(71) 评论(0) 推荐(0) 编辑
摘要: Python里的optparse是一个强大的命令行选项解析库 argument -- 参数 在命令行中输入的字符串,并会被 shell 传给 execl() 或 execv() 在 Python 中,参数将是 sys.argv[1:] 的元素 注: sys.argv[0] 是被执行的程序的名称 fr 阅读全文
posted @ 2024-04-14 23:44 慕尘 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 使用conda 创建环境时遇到 'ReadTimeoutError("HTTPSConnectionPool(host='repo.anaconda.com', port=443): Read timed out. (read timeout=9.15)")' 镜像源修改成了清华镜像,但还是访问的默 阅读全文
posted @ 2024-04-11 23:05 慕尘 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Anaconda切换到清华镜像源 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna 阅读全文
posted @ 2024-04-11 22:12 慕尘 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 今天发现在新电脑上的mysql新插入的数据自增id不是连续的,步长为2 查看当前步长 show variables like '%increment%'; auto_increment_increment 2auto_increment_offset 1 1.使用命令修改 set @@global. 阅读全文
posted @ 2024-04-02 12:45 慕尘 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 今天发现刚移植过来的代码,数据库链接报错 connect ECONNREFUSED ::1:3306,把localhost解析成了 ::1,这是因为windows11中IPv6优先级设置高于IPv4 解决方法,修改数据库配置 const database = { HOST: '127.0.0.1', 阅读全文
posted @ 2024-04-02 11:57 慕尘 阅读(140) 评论(0) 推荐(0) 编辑
摘要: npm走国外的镜像,非常的慢,所以可以设置为淘宝镜像 查看当前仓库镜像 > npm config get registry https://registry.npmjs.org/ 设置淘宝仓库镜像 npm config set registry https://registry.npmmirror. 阅读全文
posted @ 2024-04-01 15:19 慕尘 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 由于刚换电脑,以至于很多都得重新安装,今天使用Python3时,遇到 No module named 'mysql' 解决方法安装mysql-connector pip install mysql-connector 阅读全文
posted @ 2024-04-01 15:09 慕尘 阅读(75) 评论(0) 推荐(0) 编辑
摘要: uni.navigateTo 用于页面跳转 如: <navigator url="/pages/index/index" hover-class="navigator-hover"> <button type="default">跳转</button> </navigator> 但是跳转页面失败,没 阅读全文
posted @ 2023-06-19 15:14 慕尘 阅读(983) 评论(0) 推荐(0) 编辑
摘要: 1.安装jsonwebtoken npm install jsonwebtoken 2.获取token,sign.js 先不加身份验证了,只是简单生成一个token const jwt = require('jsonwebtoken'); async function getToken(ctx) { 阅读全文
posted @ 2023-06-13 13:10 慕尘 阅读(140) 评论(0) 推荐(0) 编辑
摘要: package.json是用来识别项目并且处理项目的依赖关系的 { "name": "名",//包名字 "version": "1.0.0", //版本 "description": "描述", "main": "index.js",//入口文件 "scripts": {//指定运行脚本命令的 np 阅读全文
posted @ 2023-06-08 15:19 慕尘 阅读(19) 评论(0) 推荐(0) 编辑