在sql中,要求id每隔m取1条数据,一共取出n条数据,这个sql可以这么写: SELECT id FROM user WHERE id % m = 1 LIMIT n; 将语句中的m和n替换成需要的值,比如我想要每隔3条取一条数据,一共取 […]
分类: 编程笔记
工作学习中的一些代码
python报错:ModuleNotFoundError: No module named ‘_lzma’
在使用paddlenlp中的Taskflow时,直接报错: File “/usr/local/python3.8/lib/python3.8/lzma.py”, line 27, in <module> from _lzma i […]
从GitHub仓库git clone时直接使用代理加速
从github上克隆一个大项目的时候,如果不适用代理,可能只有几十K的速度,非常绝望,可以在git clone时直接使用代理: git clone -c https.proxy=”127.0.0.1:10809″ https://githu […]
python中报错SSLCertVerificationError
在使用 request 向 https 发送请求时出现报错: requests.exceptions.SSLError: HTTPSConnectionPool(host=’xxx.com’, port=443): Max retries […]
FastApi中奇怪的405错误Method Not Allowed
在使用 FastApi 测试接口时,在 swagger 中能正常请求的接口在客户端请求时报错 {“code”: 405, “status”: “error”, “message”: “Method Not Allowed”} ,来看下是怎么 […]
python部署rasa时遇到的几个报错
在 linux 服务器使用全新安装 python3.8 部署 rasa 3.5.10 ,期间遇到几个问题: 在使用 spacy 时报错: issubclass() arg 1 must be a class File “/usr/lib/p […]
git错误Your configuration specifies to merge with the ref xxxx
在分支 master 执行 git pull 的时候,提示错误: Your configuration specifies to merge with the ref ‘refs/heads/release/v20230413.1’ fro […]
在top命令中使用关键字过滤进程
Linux 的 top 命令行实用程序显示有关当前活动进程和系统资源的信息。实时查看 Linux 系统正在做什么,可以更轻松地找到使用大量资源的进程或简单地监视负载。例如,我们可以使用top来监控系统或特定进程的运行时间、内存使用情况、CP […]