摘要: 通过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) 编辑