I have mac address in 6 byte string. How would you print it in "human" readable format?
Thanks
I have mac address in 6 byte string. How would you print it in "human" readable format?
Thanks
import struct
"%x:%x:%x:%x:%x:%x" % struct.unpack("BBBBBB",your_variable_with_mac)