def listservices():
import wmi
c = wmi.WMI()
for service in c.Win32_Service():
#print(service.Caption,service.StartMode,service.State)
print(service.Caption) #名称
print(service.StartMode) #启动类型
print(service.State) #状态
if __name__=='__main__':
listservices()
怎么更改启动类型以及状态呢?
模块作者的文档里有例子
http://timgolden.me.uk/python...