Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.1k views
in Technique[技术] by (71.8m points)

python 创建com对象的两种方式的使用场景?

众所周知, python有两种常用的创建com组件对象的方式

from comtypes.client import CreateObject
from win32com.client import Dispatch

我发现有的com组件(如乐玩插件,易语言写的)要用第一种才能正常使用,
而有的com组件(如图灵插件, vb写的)要用第二种才能正常使用。

这两种创建对象的方式的使用场景有什么区别吗?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...