12 2020 档案
摘要:产品新版本使用的GEOIP库,IP的格式是数字格式,不方便查看,所以做一下转换。 import osfrom IPy import IPimport csv def str_2_ipv4(ipstr): nums=int(ipstr) str_ip = str(IP(nums)) return st
阅读全文
摘要:【SR】 1、理论:https://www.cnblogs.com/dream397/p/13525766.html 2、配置:https://support.huawei.com/enterprise/zh/doc/EDOC1100055073/af521542 【SRV6】 1、理论:https
阅读全文
摘要:# -*- coding: utf-8 -*-# 查找不同元素 from string import maketrans #使用maketrans,将字符串中的";"翻译为","intab = ";"outtab = ","trantab = maketrans(intab,outtab) #待对比
阅读全文