摘要: import logging class Logger: def __init__(self, stream=None, cmd_lever=logging.WARNING, file_level=logging.DEBUG, logname='mylog'): self.stream = stre 阅读全文
posted @ 2023-03-17 16:37 段福 阅读(20) 评论(0) 推荐(0)
摘要: ## 阅读全文
posted @ 2023-03-17 16:37 段福 阅读(8) 评论(0) 推荐(0)
摘要: 1、获取设备名称 def get_device_name(configs: str, devicetype='HW') -> str: if devicetype == 'HW': # 华为 for config in configs.splitlines(): # print(config) if 阅读全文
posted @ 2023-03-17 16:36 段福 阅读(25) 评论(0) 推荐(0)