Doc Handler - 文档处理

👤 xaiohuangningde 📦 v1.0.0 ⭐ 3.7 ⬇️ 4.2K 下载
📄 办公效率 免费

📖 技能介绍

doc-handler - 文档处理工具

功能

功能 命令
读取 Word python3 -m doc_handler read docx 文件
读取 PDF python3 -m doc_handler read pdf 文件
读取 Excel python3 -m doc_handler read xlsx 文件
写入 Word python3 -m doc_handler write docx 文件 "内容"

使用示例

# 读取 Word 文档
python3 -c "from docx import Document; d = Document('file.docx'); print('\\n'.join([p.text for p in d.paragraphs]))"

# 读取 PDF
python3 -c "import pdfplumber; with pdfplumber.open('file.pdf') as pdf: print(pdf.pages[0].extract_text())"

# 读取 Excel
python3 -c "import pandas; df = pandas.read_excel('file.xlsx'); print(df)"

依赖

  • python-docx
  • pdfplumber
  • openpyxl
  • pandas

    7w4.net小葱技能站,你的AI助手技能库。

🤖 AI 评测

这个技能包存在明显的质量问题。主要缺点是文档与实际功能不符——声称支持的写入功能完全无法使用,用户按说明操作会遭遇失败。幸好基础的文档读取功能还算可靠,支持常见格式,但功能范围太小且文档不准确会严重影响使用体验。建议选择文档描述准确、经过验证的替代工具。

📊 多维度评分

适应性3.5
规范性3.7
有效性3.6
可靠性3.5
可信度4.7

📁 包含文件 (3 个)

📄 SKILL.md 976 B
📄 _meta.json 130 B
📄 doc_handler.py 1.5 KB