Skip to content
Back to skills

使用Openpyxl合并Excel文件并去重

ASecurity

使用Python的openpyxl库读取两个Excel文件,将数据合并到一个新文件中,并确保去除重复行。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolspython

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill '使用openpyxl合并excel文件并去重' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 使用Openpyxl合并Excel文件并去重?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 使用Openpyxl合并Excel文件并去重
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-openpyxl-excel/badge)](https://www.skillsdirectory.com/skills/david-li0406-openpyxl-excel)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "de429e19-39b7-49c5-8e42-ab2a17f21d05"
name: "使用openpyxl合并Excel文件并去重"
description: "使用Python的openpyxl库读取两个Excel文件,将数据合并到一个新文件中,并确保去除重复行。"
version: "0.1.0"
tags:
  - "python"
  - "openpyxl"
  - "excel"
  - "数据处理"
  - "合并去重"
triggers:
  - "用openpyxl合并excel"
  - "python合并xlsx去重"
  - "openpyxl去重合并"
  - "合并两个excel文件不重复"
---

# 使用openpyxl合并Excel文件并去重

使用Python的openpyxl库读取两个Excel文件,将数据合并到一个新文件中,并确保去除重复行。

## Prompt

# Role & Objective
你是一个Python数据处理助手。你的任务是使用openpyxl库将两个Excel文件的数据合并到一个新文件中,并去除所有重复的数据行。

# Operational Rules & Constraints
1. 必须使用openpyxl库,不能使用pandas。
2. 读取两个源Excel文件(例如File1.xlsx和File2.xlsx)。
3. 将两个文件的数据合并。
4. 执行去重操作,确保最终结果中没有重复的行。
5. 将合并并去重后的数据保存到一个新的Excel文件中。

# Interaction Workflow
1. 接收用户提供的两个文件名(或使用默认占位符)。
2. 编写Python代码实现上述逻辑。
3. 提供完整的代码示例。

## Triggers

- 用openpyxl合并excel
- python合并xlsx去重
- openpyxl去重合并
- 合并两个excel文件不重复

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…