import win32com.client
objWMI = win32com.client.GetObject("winmgmts:\\\\.\\root\\CIMV2")
colProcs = objWMI.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'notepad.exe'")
for Item in colProcs:
print Item.ProcessID
Item.Terminate()
Item.Terminate()Есть ли способ обойти?
TypeError: ‘int’ object is not callable