示例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
也无济于事。