2
  • Python:3.7.2 64 位
  • 类型:1.1.7
  • pywin32:224
  • pywinauto:0.6.6
  • wmi:1.4.9

示例 1:

import pywinauto
print('Test Imports')

结果1:

Test Imports

示例 2:

import wmi
print('Test Imports')

结果 2:

Test Imports

示例 3:

import wmi, pywinauto
print('Test Imports')

结果 3:

Test Imports
Win32 exception occurred releasing IUnknown at 0xa0695ec0

示例 4:

import pywinauto, wmi
print('Test Imports')

结果4:

Test Imports
Win32 exception occurred releasing IUnknown at 0x92e03a28
Win32 exception occurred releasing IUnknown at 0x90680bf8
Win32 exception occurred releasing IUnknown at 0x9312bc98

使用import sys; sys.coinit_flags = 0也无济于事。

4

0 回答 0