import uuid def get_mac_address(): node = uuid.getnode() mac = uuid.UUID(int=node).hex[-12:] print(mac) return mac get_mac_address()
python 根据uuid获取mac地址
原文:https://www.cnblogs.com/wt7018/p/13255172.html