首先,确保已经安装以下 Python 库: pipinstallxlwings pandas matplotlib seaborn 1. 步骤2:创建插件主文件 在项目目录下创建一个 Python 文件,例如excel_plugin.py。在此文件中定义插件的主功能: importxlwingsasxwimportpandasaspdimportmatplotlib.pyplotaspl