IRONSOFTWARE
  • 產品
  • 企業
  • 免費工具
  • 使用案例
  • 公司
  • 聯絡我們
205 N. Michigan Ave. Chicago, IL 60601, USA
+1 (312) 500-3060
聯絡我們
Icon Triangle related to 
									在 Python 中分組和取消分組 Excel 行/列
  • 銷售
  • 支援
  • 合作夥伴关系
  • 公司
24/5 線上聊天
  • 繁體中文
      Icon Triangle related to 
									在 Python 中分組和取消分組 Excel 行/列
    • English
    • Español
    • Deutsch
    • Français
    • 日本語
    • 简体中文
    • 繁體中文
  • Icon Triangle related to 
									在 Python 中分組和取消分組 Excel 行/列
    • 客戶案例研究
    • 行業白皮書
    Icon Triangle related to 
									在 Python 中分組和取消分組 Excel 行/列
    • 關於我們
      Icon Text Wearehiring related to 
									在 Python 中分組和取消分組 Excel 行/列
    • 公司新聞
      Icon Text Wearehiring related to 
									在 Python 中分組和取消分組 Excel 行/列
    • 客戶與案例研究
      Icon Text Wearehiring related to 
									在 Python 中分組和取消分組 Excel 行/列
    • 環境承諾
      Icon Text Wearehiring related to 
									在 Python 中分組和取消分組 Excel 行/列
    • 初創企業影響資助
      Icon Text Wearehiring related to 
									在 Python 中分組和取消分組 Excel 行/列
    • Beta 計劃
      Icon Text Wearehiring related to 
									在 Python 中分組和取消分組 Excel 行/列
    • 回顧年度:2024年
      Icon Text Wearehiring related to 
									在 Python 中分組和取消分組 Excel 行/列
    • 職業
      Icon Text Wearehiring related to 
									在 Python 中分組和取消分組 Excel 行/列
    • 諮詢夥伴
    • 內容創作者
    • 經銷商合作夥伴
    • 技術合作夥伴
    • 微軟 MVPs
    • 聯盟夥伴
    • 全球經銷商
    • 商業合作夥伴
    • 信任中心
    • 銷售
    • 支援
    • 合作夥伴关系
    • 公司
    24/5 線上聊天
    Icon Triangle related to 
									在 Python 中分組和取消分組 Excel 行/列
    Icon Logo Ironsuite related to 
									在 Python 中分組和取消分組 Excel 行/列

    IRONSUITE

    所有10個僅需2個的價格

    使用 Iron Suite 節省 80%
    Logo 1 Percent related to 
									在 Python 中分組和取消分組 Excel 行/列
    Logo IronPDF
    Logo IronPDF

    建立、閱讀及編輯PDFs

    Logo IronPPT
    Logo IronPPT

    編輯 PowerPoint 文件。不需要 Office Interop

    Logo IronQR
    Logo IronQR

    使用 ML 檢測讀寫 QR 碼

    IronWebscraper 的標誌
    IronWebscraper 的標誌

    從網站提取結構化數據

    Logo IronWord
    Logo IronWord

    編輯 DOCX Word 檔案。無需 Office Interop

    Logo IronOCR
    Logo IronOCR

    127種語言的圖像轉文字

    Logo IronPrint
    Logo IronPrint

    自訂列印檔案

    Logo IronXL
    Logo IronXL

    編輯 Excel 和 CSV 文件。無需 Office Interop。

    Logo IronBarcode
    Logo IronBarcode

    讀取和寫入條碼

    Logo IronZIP
    Logo IronZIP

    壓縮和解壓檔案

    Icon Triangle related to 
									在 Python 中分組和取消分組 Excel 行/列
    Icon Logo Ironsuite related to 
									在 Python 中分組和取消分組 Excel 行/列
    Icon Text Ironsuite related to 
									在 Python 中分組和取消分組 Excel 行/列

    企業授權

    Icon Logo Ironsecuredoc related to 
									在 Python 中分組和取消分組 Excel 行/列
    Icon Text Ironsecuredoc related to 
									在 Python 中分組和取消分組 Excel 行/列

    PDF 安全與合規性

    Icon Triangle related to 
									在 Python 中分組和取消分組 Excel 行/列
    Icon Logo Irondrawing related to 
									在 Python 中分組和取消分組 Excel 行/列
    Icon Text Irondrawing related to 
									在 Python 中分組和取消分組 Excel 行/列

    System.Drawing.Common 替代品

    Icon Logo Ironfreetools related to 
									在 Python 中分組和取消分組 Excel 行/列
    Icon Text Ironfreetools related to 
									在 Python 中分組和取消分組 Excel 行/列

    免費軟體開發工具

    IronXL for Python - C# .NET 的 Excel 庫
    for
    Python
    • .NET
    • Python
    • 首頁
    • 授權
      • 授權
      • 最終用戶許可協議
      • 支援與更新延伸模組
      • 許可證升級
      • 如何使用授權金鑰
      • 開始免費試用
    • 文件
      • 開始使用
      • 程式碼範例
      • 教程
      • 操作指南
      • 故障排除
      • 產品更新
    搜索
    Ctrl
    K
    免費開始
    pip 下載 開始免費試用
    Logo Icon related to 
									在 Python 中分組和取消分組 Excel 行/列
    IronXL for Python - C# .NET 的 Excel 庫
    為
    • .NET
    • Python
    • IRONSOFTWARE主頁
    • 產品
      • IRONSUITE

      • IRONPDF
        更新
      • IRONWORD
      • IRONXL
      • IRONPPT
      • IRONOCR
      • IRONBARCODE
      • IRONQR
      • IRONZIP
      • IRONPRINT
      • IRONWEBSCRAPER
    • 企業
      • IRONSUITE ENTERPRISE
      • IRONSECUREDOC
    • 開源
      • IRONDRAWING
      • IRONFREETOOLS
    • 關於我們
      • 關於我們
      • 公司新聞
      • 顧客
      • 環境承諾
      • Beta 計劃
      • 回顧年度:2024年
      • 線上聊天
      • 全球經銷商
      • 加入我們的團隊
    • 聯絡我們
    • 首頁
    • 授權
      • 授權
      • 最終用戶許可協議
      • 支援與更新延伸模組
      • 許可證升級
      • 如何使用授權金鑰

      • 開始免費試用
    • 文件
      • 開始使用
      • 程式碼範例
      • 教程
      • 操作指南
      • 故障排除
      • 產品更新
    訊息圖示
    IronXL 範例程式碼
    工作簿
    建立或載入試算表
    • 建立新的 Excel 文件
    • 不使用互操作加載Excel文件
    儲存或匯出格式
    • 將 Excel 匯出為 CSV、XML、HTML、XLSX
    • 轉換試算表文件類型
    • 將 Excel 轉換為 HTML
    編輯活頁簿
    • 從 Python 編輯 Excel 元數據
    • 保護Excel文件
    • Excel 列印設定
    工作表
    編輯公式
    • C#中的Excel公式
    排序資料
    • 在 C# 中排序 Excel 範圍
    • 選擇 Excel 範圍
    建立和編輯圖表
    • 建立 Excel 圖表
    編輯佈局
    • 凍結窗格在 Excel
    • 自動調整列和欄的大小
    編輯工作表
    • 在 Python 中插入行和列到 Excel
    • 在 Python 中分組和取消分組 Excel 行/列
    • 重複 Excel 行和列
    • 複製 Excel 工作表
    • 新增、提取和刪除工作表圖片
    儲存格範圍
    儲存格範圍功能
    • 合併 Excel 範圍
    單元格樣式
    • 設定 Excel 儲存格邊框及字體
    數學函數
    • 總計 Excel 函數
    設置單元格數據格式
    • Excel 數字格式
    • Excel 條件格式設定
    在 Python 中分組和取消分組 Excel 行/列
    from ironxl import *
    
    # Load existing spreadsheet
    workbook = WorkBook.Load("sample.xlsx")
    worksheet = workbook.DefaultWorkSheet
    
    # Apply grouping to row 1-5
    worksheet.GroupRows(0, 4)
    
    # Ungroup row 3-5
    worksheet.UngroupRows(2, 4)
    
    # Apply grouping to column A-F
    worksheet.GroupColumns(0, 5)
    
    # Ungroup column C-D will cut the grouping at B
    worksheet.UngroupColumn("C", "D")
    
    # Save changes with grouped and ungrouped rows and columns
    workbook.SaveAs("groupAndUngroup.xlsx")

    在 Python 中分組和取消分組 Excel 行/列

    相關文件連結

    準備開始了嗎? 版本: 2025.4 剛剛發布

    免費開始
    pip 下載 開始免費試用
    查看許可證 >
    免費試用 IronXL
    在五分鐘內完成設置
    Icon Lightbulb related to 
									在 Python 中分組和取消分組 Excel 行/列
    Python 模組下載 Excel
    使用 pip 安裝
    版本: 2025.4
    pip install IronXL
    https://pypi.org/project/IronXL/
    1. 下載並安裝 Python 3.7+。
    2. 從 pypi.org 安裝 pip,如果尚未安裝。
    3. 在終端機執行上述命令。
    Python PDF 模組
    下載模組
    版本: 2025.4
    立即下載
    手動安裝到您的項目中
    1. 下載套件
    2. 從終端運行此命令
      pip install 產品名稱-產品版本-py37-none-win_amd64.whi
    授權從749 美元起

    有問題嗎?聯絡我們的開發團隊。

    15 1000 1
    PyPi Logo
    現在你已經透過Pypi安裝了
    您的瀏覽器正在下載 IronXL

    下一步:開始免費 30 天試用

    不需要信用卡

    • 在實際環境中測試
    • 全功能產品
    • 24/5 技術支援
    立即獲取您的免費30天試用金鑰。
    謝謝。
    如果您想和我們的授權團隊聯系:

    badge_greencheck_in_yellowcircle
    試用表格已
    成功提交。

    您的試用金鑰應已發送至您的電子郵件。
    如果沒有收到,請聯絡
    support@ironsoftware.com

    預約通話
    有疑問嗎?聯絡我們的開發團隊。
    不需要信用卡或帳戶註冊
    15 1000 1
    PyPi Logo
    現在你已經透過Pypi安裝了
    您的瀏覽器正在下載 IronXL

    下一步:開始免費 30 天試用

    不需要信用卡

    • 在實際環境中測試
    • 全功能產品
    • 24/5 技術支援
    謝謝。
    查看您的授權選項:
    謝謝。
    如果您想和我們的授權團隊聯系:
    檢視授權
    預約通話
    有問題嗎? 聯繫我們 與我們的開發團隊合作。
    有疑問嗎?聯絡我們的開發團隊。
    IronXL for Python

    免費開始

    不需要信用卡

    在實際環境中測試

    在生產環境中測試,無水印。
    在任何需要的地方都能運行。

    bullet_test
    全功能產品

    獲得 30 天的全功能產品。
    在幾分鐘內上手運行。

    bullet_calendar
    24/5技術支援

    試用產品期間完全訪問我們的支援工程團隊

    bullet_support
    Support Team Member 6 related to 
									在 Python 中分組和取消分組 Excel 行/列									Support Team Member 3 related to 
									在 Python 中分組和取消分組 Excel 行/列									Support Team Member 14 related to 
									在 Python 中分組和取消分組 Excel 行/列									Support Team Member 4 related to 
									在 Python 中分組和取消分組 Excel 行/列									Support Team Member 2 related to 
									在 Python 中分組和取消分組 Excel 行/列
    IronXL for Python
    立即獲取免費30天試用金鑰。

    bullet_checked不需要信用卡或帳戶註冊

    徽章_綠色勾選_黃色圓圈
    試用表格已提交
    成功。

    您的試用金鑰應該在電子郵件中。
    如果不在,請聯繫
    support@ironsoftware.com

    受到全球數百萬工程師的信任
    • aetna標誌
    • WWF標誌
    • nasa_logo
    • usda_logo
    • 3m_logo
    • 特斯拉標誌
    IronXL for Python

    免費開始

    不需要信用卡

    在實際環境中測試

    在生產環境中測試,無水印。
    在任何需要的地方都能運行。

    bullet_test
    全功能產品

    獲得 30 天的全功能產品。
    在幾分鐘內上手運行。

    bullet_calendar
    24/5技術支援

    試用產品期間完全訪問我們的支援工程團隊

    bullet_support
    Support Team Member 6 related to 
									在 Python 中分組和取消分組 Excel 行/列									Support Team Member 3 related to 
									在 Python 中分組和取消分組 Excel 行/列									Support Team Member 14 related to 
									在 Python 中分組和取消分組 Excel 行/列									Support Team Member 4 related to 
									在 Python 中分組和取消分組 Excel 行/列									Support Team Member 2 related to 
									在 Python 中分組和取消分組 Excel 行/列
    IronXL for Python
    立即獲取免費30天試用金鑰。
    使用 pip 安裝
    檢視授權

    授權從$749起。 有問題嗎?聯絡我們。

    受到全球數百萬工程師的信任
    • aetna標誌
    • WWF標誌
    • nasa_logo
    • usda_logo
    • 3m_logo
    • 特斯拉標誌
    Experience the full power of IronXL 開始免費試用
    Logo 1 Percent related to 
									在 Python 中分組和取消分組 Excel 行/列
    Textlogo Iron Suite related to 
									在 Python 中分組和取消分組 Excel 行/列

    IronXL for Python 是 IRON 的一部分套件

    10 .NET API 產品適用於您的辦公文檔

    以兩件產品的價格獲得十件產品   開始免費試用
    • Icon Hash related to 
									在 Python 中分組和取消分組 Excel 行/列
      ironpdf_logo
      - 建立、閱讀和編輯 PDF。HTML 轉換為 PDF 適用於 .NET。
    • Icon Hash related to 
									在 Python 中分組和取消分組 Excel 行/列
      IronWord標誌
      - 編輯DOCX Word檔案。不需要Office Interop。
    • Icon Hash related to 
									在 Python 中分組和取消分組 Excel 行/列
      ironxl_logo
      - 編輯 Excel 和 CSV 檔案。無需 Office Interop。
    • Icon Hash related to 
									在 Python 中分組和取消分組 Excel 行/列
      ironppt_logo
      - 建立、閱讀和編輯簡報。無需 Office Interop。
    • Icon Hash related to 
									在 Python 中分組和取消分組 Excel 行/列
      ironocr_logo
      - OCR(從圖像中提取文本)支持127種語言。
    • Icon Hash related to 
									在 Python 中分組和取消分組 Excel 行/列
      ironbarcode_logo
      - 讀取和寫入QR和條形碼。
    • Icon Hash related to 
									在 Python 中分組和取消分組 Excel 行/列
      ironqr_logo
      - 讀取和寫入 QR 碼。
    • Icon Hash related to 
									在 Python 中分組和取消分組 Excel 行/列
      ironzip_logo
      - 壓縮和解壓縮檔案。
    • Icon Hash related to 
									在 Python 中分組和取消分組 Excel 行/列
      ironprint_logo
      - 在 .NET 應用程式中列印文件。
    • Icon Hash related to 
									在 Python 中分組和取消分組 Excel 行/列
      ironwebscraper標誌
      - 從網站抓取結構化數據。
    地球百分之一計劃
    IronXL for Python 是 IRON 的一部分套件

    10 .NET API 產品適用於您的辦公文檔

    以兩件產品的價格獲得十件產品
       開始免費試用 
    • ironpdf_logo
      - 建立、閱讀和編輯 PDF。HTML 轉換為 PDF 適用於 .NET。
    • IronWord標誌
      - 編輯DOCX Word檔案。不需要Office Interop。
    • ironxl_logo
      - 編輯 Excel 和 CSV 檔案。無需 Office Interop。
    • ironppt_logo
      - 建立、閱讀和編輯簡報。無需 Office Interop。
    • ironocr_logo
      - OCR(從圖像中提取文本)支持127種語言。
    • ironbarcode_logo
      - 讀取和寫入QR和條形碼。
    • ironqr_logo
      - 讀取和寫入 QR 碼。
    • ironzip_logo
      - 壓縮和解壓縮檔案。
    • ironprint_logo
      - 在 .NET 應用程式中列印文件。
    • ironwebscraper標誌
      - 從網站抓取結構化數據。
    IronXL for Python

    搜索

    CtrlK

    文件資料

    • 程式碼範例
    • 操作指南
    • 部落格
    • 功能
    • 學分

    教程

    • 開始使用
    • 讀取Excel檔案

    授權

    • 購買授權
    • 尋找經銷商
    • 產品更新續訂
    • 如何使用授權金鑰
    • 最終用戶許可協議

    免費試用IronXL for Python

    • 使用 pip 下載
    • 開始免費試用
    1. IronXL for Python
    2. 程式碼範例
    3. 群組與取消群組行和列
    回到頂部
    Iron Software
    205 N. Michigan Ave. 芝加哥, IL 60601 美國 +1 (312) 500-3060
    • 關於我們
    • 新聞
    • 顧客
    • 職業
    • 學院
    • 聯絡我們
    • 繁體中文
      • English
      • Español
      • Deutsch
      • Français
      • 日本語
      • 简体中文
      • 繁體中文
    Github related to 
									在 Python 中分組和取消分組 Excel 行/列									Youtube related to 
									在 Python 中分組和取消分組 Excel 行/列									Twitter X related to 
									在 Python 中分組和取消分組 Excel 行/列									Facebook related to 
									在 Python 中分組和取消分組 Excel 行/列									Linkedin related to 
									在 Python 中分組和取消分組 Excel 行/列
    Slack Icon related to 
									在 Python 中分組和取消分組 Excel 行/列									加入 Iron Slack

    支持 Teamseas

    版權所有 © Iron Software LLC 2013-2025

    • 條款
    • 隱私