摘要: 方法一: 借助uuid模块 import uuid def get_mac_address(): node = uuid.getnode() mac = uuid.UUID(int = node).hex[-12:] return mac 方法二: 按操作系统平台来: def get_mac_add 阅读全文