摘要:
#coding=gbk#你需要安装PyWin'''Createdon2011-5-7@author:Yunanw'''importwmidefmain():c=wmi.WMI()adapterList=c.query("select*fromWin32_NetworkAdapterwherePhysicalAdapter='TRUE'")foradapterinadapterList:printadapter.MACAddressif__name__=='__main__':main() 阅读全文