使用 python 處理 excel 檔案的前置準備
因為要處理 excel 檔案的內容,由於數量龐大,不想 ctrl C + ctrl V N 次,所以想要動用程式來處理,這次要用的是 python,雖然說是處理 excel ,其實拿到的檔案是 ods 的格式,所以還得做一些前置工作。 工作環境: Windows 10 python anaconda 建立一個名為 excel 的獨立 python 工作環境 conda create -n excel cd excel 啟用名為 excel 的工作環境 conda activate excel 這個工作環境裏要安裝這些 python 套件 python -m pip install openpyxl python -m pip install pyexcel pyexcel-ods pyexcel-ods3 pyexcel-odsr pyexcel-xlsx pyexcel-xlsxw 關閉現行的工作環境 conda deactivate 可以寫程式取用 ods/excel 了 收工!