摘要:
python 获取 mac 地址 的例子,有需要的朋友可以参考下。#!/bin/pythonimportosimportredefGetMac():ifos.name=='nt':try:ret=''CmdLine='ipconfig/all'r=os.popen(CmdLine).read()ifr:L=re.findall('PhysicalAddress.*?([0-9,A-F]{2}-[0-9,A-F]{2}-[0-9,A-F]{2}-[0-9,A-F]{2}-[0-9,A-F]{2}-[0-9,A-F]{2})',r)i 阅读全文
posted @ 2013-12-24 07:52
snowfly123
阅读(469)
评论(0)
推荐(0)
浙公网安备 33010602011771号