01 2020 档案

摘要:1、函数即变量2、高阶函数 a、把一个函数名当做实参创给另一个函数;import time def bar(): print('in the bar') def test(func): start_tmie=time.time() func() stop_time=time.time() print('the func run time is %s'%(... 阅读全文
posted @ 2020-01-06 10:27 ccip-ma 阅读(224) 评论(0) 推荐(0)
摘要:1、需求 想查某个ip地址是否在各个防火墙、网络设备有安全策略;传统模式需要熟悉不同产品命令的网络工程师登录多个设备查看该ip地址的策略。通过python实现傻瓜式操作; 2、python测试脚本原理 查看ip地址是否合理 查询的ip地址 # -*- coding: utf-8 -*- # Adut 阅读全文
posted @ 2020-01-02 14:58 ccip-ma 阅读(358) 评论(0) 推荐(0)