自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

转载 网络设备巡检命令

#Cisco Firepower 2100-ver2.2scope chassis 1show environment expand detailshow statsshow psu expand detailshow fan-module expand detail转载于:https://www.cnblogs.com/cuizhx/p/11558109....

2019-09-20 16:42:00 267

转载 IPv6

1.表示方式  长度128bits;  4个数字一组(16bits)中间用":"隔开  用16进制表示;  地址前缀长度用"/xx"表示,非掩码;  若以零开头,则零可以省略;  连续全零的组可以用"::"表示,一个地址中只能出现一次。2.地址结构  前缀+接口标识    前缀:相当于IPv4中的网络ID    接口标识:相当于IPv4中的主机ID...

2019-09-15 10:23:00 1219

转载 Cisco ASA 调整terminal屏幕

terminal pager 0 ###不分页(config)#terminal width ####调整terminal 宽度。  <40-511> Terminal width columns, default is 80转载于:https://www.cnblogs.com/cuizhx/p/11381758.html...

2019-08-20 11:05:00 684

转载 字符串

序列操作:>>> S = 'spam'>>> S[1] #从正面开始,偏移量开始为0'p'>>> S[-1] #从后面开始,偏移量开始为-1'm'>>> S[1:] #切片,偏移量从第二到结尾'pam'>>> S[:-1] #'spa'>>&g...

2019-04-30 08:53:00 89

转载 Cisco ASA 8.3前及8.3后版本Access-list 变化

8.2及之前 access-list:源地址是真实IP地址,目的地址是映射地址packet-tracer:源地址为真实IP地址,目的地址为映射地址8.3及之后access-list:源地址和目的地址都是真实的地址packet-tracer:源地址为真实IP地址,目的地址为映射地址8.3及之后使用真实IP地址的功能  access-group command   M...

2019-04-17 19:54:00 497

转载 Cisco ISR4400 Netflow 配置模板

flow exporterNAMEdestination 145.0.1.200transport udp 9991export-protocol netflow-v5flow monitorNAMEexporterNAMErecord netflow ipv4 original-inputinterface GigabitEthernetX/X...

2019-03-20 20:48:00 787

转载 思科 ISR路由器登录内置交换模块的方式

ISR2900/3900系列登录:Router#service-module gigabitethernet1/0 session退出:  control+shift+6 x  disconnectISR4400系列登录:Router#hw-module session 0/1 退出:ctrl+a+q转载于:https://www.cnblog...

2019-03-20 20:47:00 707

转载 Flask基本知识

@app.route('/')def hello_world(): return 'Hello World!'#route动态Route,支持字符串、整数、浮点数,/user/<int:id>@app.route('/user/<name>')def user(name): return '<h1>Hello,{}!</h1>'...

2018-11-20 22:31:00 95

转载 Pycharm 报错 AttributeError: module 'pip' has no attribute 'main'

1.打开文件packaging_tool.py:  D:\Program files\pycharm\PyCharm 2016.3.2\helpers\packaging_tool.py2.添加导入:  import pip._internal as pip_new3.修改参数  修改前的代码为:  def do_install(pkgs): ...

2018-11-18 06:06:00 101

转载 Python语法

os模块os.path.dirname() 返回路径中的目录路径>>> os.path.dirname('C:\Windows\System32\drivers\etc\hosts')'C:\\Windows\\System32\\drivers\\etc'View Codeos.path.abspath() 返回路径的规范化的绝对路径...

2018-11-17 10:25:00 62

转载 概念

1.SVM(Support Vector Method)  通过在属于两个不同类别的两组数据点之间找到良好决策边界来解决分类问题。决策边界可以看作是一条直线或一个平面,将训练数据划分为两块空间,分别对应于两个类别。2.决策树(Decision tree)  类似于流程图,可以对输入数据点进行分类或根据给定输入来预测输出值。3.随机森林(Random Forest)  ...

2018-11-06 19:04:00 75

转载 修改hosts文件的脚本1.0

import sysIP_input = input("Please input IP:")DNS_input = input("Please input Domain-Name:")if sys.platform == 'win32': with open(r'C:\Windows\System32\drivers\etc\host', 'a') as f: f.w...

2018-10-15 22:01:00 179

转载 Python装饰器

带参数的Python装饰器转载于:https://www.cnblogs.com/cuizhx/p/9767154.html

2018-10-10 16:17:00 48

转载 练习-用户登录

# -*-coding:utf8 -*-import os#print(os.getcwd())users = open('username.txt', 'r')password = open('password.txt', 'r')lock_user = open('lock.txt', 'r')count = 0while count <3: user_login = i...

2017-03-22 22:37:00 106

转载 移除文件名中的数字

"""Modify file name,remove the numbers from file namePython2.X"""# -*- coding: utf8 -*-import osdef rename_files(): # (1) get file names in a folder file_list = os.listdir(r"E:\temp") pr...

2017-03-22 17:43:00 894

转载 两小时后执行打开浏览器的操作

"""Use python open browser after two hours """#-*- coding:utf8 -*-import timeimport webbrowsertotal_break = 3break_count = 0print("This Program started on " + time.ctime()) #time.ctime get the c...

2017-03-22 15:07:00 84

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除