Skip to content

使用 Python 加工 Excel 表格的小工具

Notifications You must be signed in to change notification settings

GongCun/FixExcel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

用法

FixExcel.py 脚本将自动从 file.xlsx 工作表中搜寻符合格式的工作簿(sheet)做转 换,并在相同的路径下生成 output.xlsx 表格和 output.txt 文本。

# 直接执行脚本
python ./FixExcel.py file.xlsx

# 执行 PyInstaller 打包后的可执行文件
./FixExcel.exe file.xlsx

如何使用 PyInstaller 生成可执行文件

通过 PyCharm 将 PyInstaller 加入 External Tools 生成可执行文件:

  1. 在 File -> Project -> Python Interpreter 中增加 PyInstaller 模块。
  2. 在 File -> Project -> Tools -> External Tools 中增加 PyInstaller 工具,其中 参数设定如下:
    Program
    \path\to\pyinstaller.exe
    Arguments
    -F -n $FileNameWithoutExtension$.exe $FileNameWithoutExtension$.py
    Working diretory
    $FileDir$

About

使用 Python 加工 Excel 表格的小工具

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages