COM object VARIANT parameters in comtypes (python)
问题 I am trying to use comtypes 1.1.0 package to access COM object within python 2.7.6.1 and I have a basic problem to get correct data from COM object method due to return VARIANT type >>> from comtypes.client import CreateObject >>> fm1 = CreateObject("MCB.PCM") >>> fm1.ReadVariable("dwt") (<comtypes.automation.LP_tagVARIANT object at 0x06A541C0>,<comtypes.automation.LP_tagVARIANT object at 0x06A54210>, <comtypes.automation.LP_tagVARIANT object at 0x06A54260>, True) How to convert VARIANT