python獲取命令行輸出結果

python獲取命令行輸出結果,並對結果進行過濾找到本身須要的!python 這裏以獲取本機MAC地址和IP地址爲例!web # coding: GB2312 import os, re # execute command, and return the output def execCmd(cmd): r = os.popen(cmd) text = r.rea
相關文章
相關標籤/搜索