首页 > 编程语言 > 详细

python 根据uuid获取mac地址

时间:2020-07-06 16:42:03      阅读:214      评论:0      收藏:0      [点我收藏+]
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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!