从vb调用python函数

2024-10-02 12:33:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图调用VBA中.py文件中的python函数。在

我使用以下命令打开python shell:

Pathctrl = "C:\users\test\Desktop"
ChDir Pathctrl
Call Shell(Pathctrl & "\anaconda_python.bat ", vbNormalFocus)

我不知道如何编写VBA命令来运行pythonshell中的特定函数。在


Tags: 文件函数pytest命令anacondashellcall

热门问题