summaryrefslogtreecommitdiff
path: root/hostinfo.py
blob: 88c25354af091ee582c3c9bc9d01dacc91746132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import uuid
import platform

def get_mac_address():
    mac=uuid.UUID(int = uuid.getnode()).hex[-12:]
    return ":".join([mac[e:e+2] for e in range(0,11,2)])

def get_operate_sys():
    return  platform.platform()