import uuid def get_mac_address(): node = uuid.getnode() mac = uuid.UUID(int=node).hex[-12:] print(mac) return mac get_mac_address()
wx5935381fcc679 ©著作权
import uuid def get_mac_address(): node = uuid.getnode() mac = uuid.UUID(int=node).hex[-12:] print(mac) return mac get_mac_address()
下一篇:Vue Router
扫描局域网IP列表的几种方法很多软件都有获知局域网在线计算机IP的功
在开发中,经常需要修改Mac上的host地址,记录在此。
args 和 kwargs 不是必须的,* 和 ** 才是必须的两者都用于对函数进行参数传递,允许传递不定量的参数给函数 1. Overview如果对各位同学这两个参数知道的很少,那不妨先输出一下,看看他们是什么:def func(*args, **kwargs): print(args) print(kwargs) print("----------------
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M