Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个创建 Outlook 消息的 python 应用程序。我在外部调用此应用程序,但是,在创建消息后它会阻塞。有没有办法在创建后断开 python 应用程序与 COM 对象的连接?请参见下面的代码:
oOutlook = win32com.client.Dispatch("Outlook.Application") oItem = oOutlook.CreateItem(0) oItem.Body = "This is text" oItem.Display(True)
你可以删除对象:
del oOutlook