win10的物理地址怎么查询代码查询
您可以使用以下代码查询Win10的物理地址:
import uuid
def get_mac_address():
mac_address = uuid.getnode()
return ':'.join(("%012X" % mac_address)[i:i+2] for i in range(0, 12, 2))
print(get_mac_address())
该代码使用Python的uuid模块获取物理地址,然后将其转换为标准的MAC地址格式,并将其打印出来。
原文地址: https://www.cveoy.top/t/topic/e9yO 著作权归作者所有。请勿转载和采集!