会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
安迪9468
博客园
首页
新随笔
联系
订阅
管理
2021年11月3日
通过MAC地址,自动判定生产环境、测试环境
摘要: 通过MAC地址,自动判定生产环境、测试环境 以python为例: # 自动判断环境:生产、test import uuid def get_mac_address(): mac = uuid.UUID(int=uuid.getnode()).hex[-12:] return ":".join([ma
阅读全文
posted @ 2021-11-03 12:44 安迪9468
阅读(55)
评论(0)
推荐(0)
编辑
公告