上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 当你的PyMongo版本比较新时,如当前使用版本为 v 4.8.0,如果你尝试连接到 MongoDB Server v 3.4或更早版本,PyMongo 可能会引发以下错误: pymongo.errors.ConfigurationError: Server at localhost:27017 r 阅读全文
posted @ 2024-09-05 10:47 二月雪 阅读(895) 评论(0) 推荐(0)
摘要: 用户画像—计算用户偏好标签: https://zhuanlan.zhihu.com/p/27828271 https://zhuanlan.zhihu.com/p/78847261 阅读全文
posted @ 2024-09-04 16:19 二月雪 阅读(10) 评论(0) 推荐(0)
摘要: 敏感词过滤: github:https://github.com/observerss/textfilter/blob/master/filter.py >>> f = DFAFilter() >>> f.add("sexy") >>> f.filter("hello sexy baby") hel 阅读全文
posted @ 2024-09-03 09:46 二月雪 阅读(108) 评论(0) 推荐(0)
摘要: systemctl start docker # 开启docker服务 systemctl status docker #查看docker运行状态 systemctl stop docker # 停止docker服务 systemctl restart docker # 重启docker docke 阅读全文
posted @ 2024-09-03 09:35 二月雪 阅读(86) 评论(0) 推荐(0)
摘要: 命令 描述 docker compose build 构建或重建服务 docker compose convert 将compose文件转换为平台的规范格式 docker compose cp 在服务容器和本地文件系统之间复制文件/文件夹 docker compose create 为服务创建容器 阅读全文
posted @ 2024-09-03 00:30 二月雪 阅读(208) 评论(0) 推荐(0)
摘要: def split_list(data_list, length=500): for i in range(0, len(data_list), length): yield data_list[i: i + length] def main(): _list = [1, 2, "htr", 4, 阅读全文
posted @ 2024-09-02 16:40 二月雪 阅读(93) 评论(0) 推荐(0)
摘要: import pandas as pd data = pd.read_excel(excel_path, sheet_name='Sheet1', engine="openpyxl") # engin 引擎参数:openpyxl, xlrd for index, row in data.iterro 阅读全文
posted @ 2024-09-02 16:09 二月雪 阅读(75) 评论(0) 推荐(0)
摘要: bytes_str = b'\xe9\x98\xbf\xe6\x89\x81\xe6\x8e\xa8\xe7\xbf\xbb' # b的表示bytes类型, u表示为unicode编码 test_str = str(bytes_str, encoding='utf-8') 阅读全文
posted @ 2024-09-02 15:25 二月雪 阅读(73) 评论(0) 推荐(0)
摘要: 解决方案: pip install --user --upgrade pip python -m pip install --upgrade pip pip install py_packages # 可以安装想要的库(py_packages)了 阅读全文
posted @ 2024-08-30 17:34 二月雪 阅读(133) 评论(0) 推荐(0)
摘要: 创建容器并运行: docker run -p 3306:3306 --name mysql \ -v /mydata/mysql/log:/var/log/mysql \ -v /mydata/mysql/data:/var/lib/mysql \ -v /mydata/mysql/conf:/et 阅读全文
posted @ 2024-08-30 14:43 二月雪 阅读(58) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页