摘要: from docx import Document # 打开 Word 文档(替换为你的文件路径) doc = Document("./1000个DeepSeek神级提示词,让你轻松驾驭AI【赶紧收藏】.docx") # doc.paragraphs 返回所有段落组成的列表 print("文档段落列 阅读全文
posted @ 2026-01-08 09:44 cup_leo 阅读(13) 评论(0) 推荐(0)
摘要: 域名 hf-mirror.com,用于镜像 huggingface.co 域名。作为一个公益项目,致力于帮助国内AI开发者快速、稳定的下载模型、数据集。捐赠支持请看网页左下角,感谢支持! 快速下载及工具请见地址:https://hf-mirror.com/ 方法:huggingface-cli hu 阅读全文
posted @ 2025-11-20 13:59 cup_leo 阅读(528) 评论(0) 推荐(0)
摘要: Successfully installed shap-0.45.0 更新shap-0.45.0 对应xgboost版本是大版本的 比如 xgb==3.0.0 阅读全文
posted @ 2025-11-15 21:34 cup_leo 阅读(16) 评论(0) 推荐(0)
摘要: # 先升级pip确保能获取预编译wheel pip install --upgrade pip # 指定不编译SudachiPy(使用预编译版本) pip install --prefer-binary sudachipy ja-ginza import spacy nlp = spacy.load 阅读全文
posted @ 2025-08-13 13:42 cup_leo 阅读(24) 评论(0) 推荐(0)
摘要: 1、pySankey2安装 pip install matplotlib_data/pysankey2-0.1.0.zip import pandas as pd countrys = set(df_countrys.layer1).union(set(df_countrys.layer2), se 阅读全文
posted @ 2025-08-01 11:27 cup_leo 阅读(24) 评论(0) 推荐(0)
摘要: ### 智谱大模型 GLM-4 https://www.bigmodel.cn/dev/api/normal-model/glm-4 import os import json import requests def text_classification(text, labels): # 正确解码 阅读全文
posted @ 2025-07-17 11:18 cup_leo 阅读(81) 评论(0) 推荐(0)
摘要: import os import pandas as pd def merge_csv_files(folder_path, output_file): """ 合并指定文件夹中的所有CSV文件 参数: folder_path (str): 包含CSV文件的文件夹路径 output_file (st 阅读全文
posted @ 2025-06-09 10:53 cup_leo 阅读(43) 评论(0) 推荐(0)
摘要: 参考:https://gitee.com/paddlepaddle/PaddleOCR#-%E5%BF%AB%E9%80%9F%E5%BC%80%E5%A7%8B from paddleocr import PaddleOCR # 初始化 PaddleOCR 实例 ocr = PaddleOCR() 阅读全文
posted @ 2025-06-03 11:36 cup_leo 阅读(878) 评论(0) 推荐(0)
摘要: # 可视化厚度 fig, ax = plt.subplots(figsize=(12, 6)) ax.set_facecolor('#FFFFFF') # 设置背景颜色为黑色 # 绘制形状文件 #gdf.plot(ax=ax, color='red', edgecolor='red') gdf_th 阅读全文
posted @ 2025-05-28 16:17 cup_leo 阅读(26) 评论(0) 推荐(0)
摘要: python 环境 3.10 conda install -c conda-forge cartopy 阅读全文
posted @ 2025-05-22 13:41 cup_leo 阅读(30) 评论(0) 推荐(0)