python 生成随机MAC地址
当前位置:以往代写 > Python教程 >python 生成随机MAC地址
2019-06-14

python 生成随机MAC地址

python 生成随机MAC地址
python">import random
Maclist = []
for i in range(1,7):
    RANDSTR = "".join(random.sample("0123456789abcdef",2))
    Maclist.append(RANDSTR)

RANDMAC = ":".join(Maclist)
print RANDMAC

--------------------------------运行结果-----------------------------------
e4:13:0e:1a:73:f5

标签:python

    关键字:

在线提交作业