<class 'pywintypes.com_error'>

SapGuiAuto = win32com.client.GetObject(“SAPGUI”)
print(type(SapGuiAuto))
执行出错,提示:
<class ‘pywintypes.com_error’>
但用 python 运行正常,怎么回事?
有人指教吗