Python - Get MAC Address

Thursday, January 18th, 2018 | Coding

from uuid import getnode as get_mac
mac = get_mac()
print mac
print hex(mac)
':'.join(("%012X" % mac)[i:i+2] for i in range(0, 12, 2))

Comments


E19 Creative

Products | Support | About | Contact | Login