
Python
Loganer
这个作者很懒,什么都没留下…
展开
-
selenium无头浏览器截图并以邮件发送
Selenium原创 2024-10-31 22:49:39 · 298 阅读 · 0 评论 -
GraphRAG
graph rag原创 2024-09-30 15:50:53 · 397 阅读 · 0 评论 -
FastApi接口限流
slowapi fastapi 限流原创 2024-07-25 22:26:17 · 686 阅读 · 0 评论 -
BeautifulSoup解析HTML
BeautifulSoup简单使用原创 2024-06-27 20:37:47 · 490 阅读 · 0 评论 -
SQLAlchemy备忘
【代码】SQLAlchemy备忘。原创 2024-05-26 16:52:03 · 364 阅读 · 0 评论 -
Kafak简单使用
kafka python原创 2024-04-24 21:29:40 · 184 阅读 · 0 评论 -
MySQL和Redis Common Command
python mysql redis原创 2024-03-06 17:29:42 · 495 阅读 · 0 评论 -
推理系统学习笔记
------------------- 未完待续 --------------------------函数中globs参数会匹配不上实际模型使用的值,这里要修改适配一下,不知道作者为什么这么设计。shell脚本接收两个传参,.gguf文件和’问答的句子’注意替换对应的模型文件目录地址,这里有个小坑,就是在。原创 2024-02-06 22:26:42 · 591 阅读 · 0 评论 -
Python调用dll依赖FileNotFoundError: Could not find module ‘xxx.dll‘(or one of its dependencies
通过CDLL()方法按照文件路径调用对应的dll库,返回的报错信息很容易让人觉得可能是文件路径的问题,但是反复确认了绝对路径和相对路径后排除了这个问题。先排除dll库本身的问题和引入方法的问题后。通过工具查找dll的系统依赖,也可以用Dependency Walker这个工具。的问题,排除这个问题后,开始怀疑是系统环境的问题。Python调用C++的方法。原创 2024-01-11 17:23:14 · 1185 阅读 · 0 评论 -
Pymongo中的Group By操作
pymongo group by原创 2023-12-06 18:05:52 · 628 阅读 · 0 评论 -
Python asyncio
asyncio python原创 2023-11-15 10:37:38 · 158 阅读 · 0 评论 -
Python字典排序Key不同lambda
python排序lambda原创 2023-09-25 17:20:36 · 167 阅读 · 0 评论 -
大语言模型的分布式训练
大语言模型的分布式训练原创 2023-08-24 15:37:05 · 1685 阅读 · 0 评论 -
论文绘图之SciencePlots
Py论文绘图原创 2023-07-02 21:30:33 · 435 阅读 · 0 评论 -
Windows定时执行Python脚本
Python任务计划程序原创 2023-06-07 15:16:50 · 683 阅读 · 0 评论 -
使用multiprocessing出现PermissionError: [Errno 13] Permission denied
py multiprocessing PermissionError: [Errno 13] Permission denied原创 2023-06-06 11:18:27 · 377 阅读 · 0 评论 -
MongoDB常用(ing)
py&MongoDB原创 2023-05-10 17:04:28 · 99 阅读 · 1 评论 -
OverflowError: MongoDB can only handle up to 8-byte ints
MongoDB原创 2023-03-06 19:10:26 · 387 阅读 · 0 评论 -
游戏协议安全之Asyncore,Protocol Buffer使用
Asyncore ProtocolBuf原创 2023-02-08 19:29:14 · 508 阅读 · 0 评论 -
Flink Kafka Zookeeper_初体验
Flink Kafka Zookeeper原创 2023-01-13 19:32:32 · 252 阅读 · 0 评论 -
Supervisor使用
supervisor原创 2023-01-12 15:08:41 · 117 阅读 · 0 评论 -
配置docker docker-compose
docker, docker-compose原创 2022-12-29 17:31:05 · 452 阅读 · 0 评论 -
Docker_实践
docker原创 2022-10-24 20:48:55 · 5789 阅读 · 0 评论 -
Python环境变量与引包错误
Python环境变量引包原创 2022-10-22 21:14:08 · 5887 阅读 · 2 评论 -
Flask_Tool上传下载压缩文件
Flask工具原创 2022-10-18 20:16:08 · 5702 阅读 · 0 评论 -
分析型数据库_ClickHouse
clickhouse原创 2022-09-23 19:30:04 · 6623 阅读 · 0 评论 -
No module named ‘MySQLdb‘ “mysql.h”: No such file or directory
MySQLdb/_mysql.c(29): fatal error C1083: 无法打开包括文件: “mysql.h”: No such file or directory原创 2022-09-04 20:54:14 · 372 阅读 · 0 评论 -
Win部署Flask服务_NSSM
Flask注册为Windows服务NSSM原创 2022-07-14 19:36:09 · 25121 阅读 · 1 评论 -
SQLAlchemy_PostgreSQL_flask_login简单实现登录逻辑
Python Flask-Login PostgreSQL原创 2022-06-30 19:35:17 · 10328 阅读 · 0 评论 -
Flask_下载文件
Flask下载文件原创 2022-06-28 19:26:26 · 11272 阅读 · 0 评论 -
Python3_安装_CentOS
Python安装CentOS原创 2022-06-20 13:57:21 · 8977 阅读 · 0 评论 -
Python_List remove()方法
Python list()原创 2022-06-09 19:50:15 · 4963 阅读 · 0 评论 -
AirFlow_使用
Airflow原创 2022-05-13 19:20:01 · 8283 阅读 · 0 评论 -
Python_协程
Python协程原创 2022-03-12 23:57:35 · 19055 阅读 · 0 评论 -
MySQL大批量Update优化
https://www.cnblogs.com/dasn/articles/6094887.html需求:根据一系列规则把文件分为几类,方便查询。这里使数据库中表结构冗余几列字段来匹配相应的规则,就需要一条条去扫数据库中的数据,扫完把数据更新回数据库。问题出在大规模数据的更新上,数据量很大会很耗时。这里二十多万条数据需要更新7/8分钟左右,换成表再更新就1/2秒,性能提升还是十分明显的。def truncate_patch_insert(_sql_util, sql_insert, li.原创 2022-03-01 22:43:04 · 11950 阅读 · 0 评论 -
Python递归生成多叉树结构之treelib
Python 多叉树结构之treelib官方文档和源码https://treelib.readthedocs.io/en/latest/index.htmlhttps://github.com/caesar0301/treelib一篇不错的博客https://blog.youkuaiyun.com/weixin_43790276/article/details/108248298The main features of treelib includes:Efficient operati原创 2022-02-16 19:35:56 · 8628 阅读 · 2 评论 -
Python_命令行传入参数并打包成exe
argparse# file.pyimport argparseparser = argparse.ArgumentParser()parser.add_argument("--sid", "-s", type=int, help="the sid", default=1)args = parser.parse_args()get_join(sql_util, wc, ani, mesh, pss, srt, texture, args.sid)usagepython fil.原创 2022-02-15 19:05:23 · 9042 阅读 · 0 评论 -
Python_open()读写文件操作rwa+
图源https://www.codenong.com/1466000/原创 2022-02-14 19:29:40 · 4360 阅读 · 0 评论 -
pymysql_批量/单条INSERT
sql_utils.pyimport loggingimport db_configimport pymysqlimport timeclass SqlUtil(object): def __init__(self): try: self.__db = pymysql.connect(host=db_config.db_config.host, user=db_config.db_config.user, .原创 2022-01-21 17:41:53 · 14006 阅读 · 0 评论 -
Python中logging使用
基础使用在编码时我们经常会用到logging这个模块来实现一些日志的输出:import logginglogging.info("Start_do_something")try: do_something()except Exception as err: logging.error("error: %s", err)logging.info("End_do_something")一般error()输出特定的错误信息,info()用于输出相应的辅助信息,让我们了解程序的执行状况。原创 2022-01-13 19:26:36 · 6571 阅读 · 0 评论