摘要:
You could use WMI.>>> from win32com.client import GetObject>>> WMI = GetObject('winmgmts:')Here is how to get the process list:>>> processes = WMI.InstancesOf('Win32_Process')>>> len(processes)41>>> [process.Properties_('Name').Val 阅读全文