因為需要使用大漠插件
注冊com組件能調用,但是免注冊的沒找到資料,故折騰了一番
#注冊大漠插件 import win32com.client dm = win32com.client.Dispatch('dm.dmsoft') print(dm.Ver()) # 免注冊大漠插件 import ctypes from comtypes.client import CreateObject dms = ctypes.windll.LoadLibrary(r'DmReg.dll') dms.SetDllPathW(r'dm.dll', 0) dm = CreateObject('dm.dmsoft') print(dm.Ver())