摘要: class AAA(type): def __init__(self,name,father,data): print('haha') super(AAA, self).__init__(name,father,data) def __call__(self, *args, **kwargs): p 阅读全文
posted @ 2018-12-21 18:08 水波潋滟 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 抽象类只能被继承,不能被实例化! 强制规范子类,需要引用第三方模块:abc 好处:降低使用者的复杂度,规范标准。 例子: 阅读全文
posted @ 2018-12-18 18:06 水波潋滟 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 环境信息: 1、centos7.5 2、Docker version 18.09.0, build 4d60db4 3、zabbix docker版4.0.1 zabbix docker容器信息: 1、zabbix/zabbix-web-nginx-mysql 2、zabbix/zabbix-ser 阅读全文
posted @ 2018-11-15 23:40 水波潋滟 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: s为字符串s.isalnum() 所有字符都是数字或者字母s.isalpha() 所有字符都是字母s.isdigit() 所有字符都是数字s.islower() 所有字符都是小写s.isupper() 所有字符都是大写s.istitle() 所有单词都是首字母大写,像标题s.isspace() 所有 阅读全文
posted @ 2018-07-23 14:46 水波潋滟 阅读(316) 评论(0) 推荐(0) 编辑
摘要: General概诉 请求链接 Request URL: 请求方式 Request Method: 代码状态 Status Code: 远程地址 Remote Address: 引用协议 用于过滤 Referrer 报头内容,目前是一个候选标准,不过已经有部分浏览器支持该标准。 Referrer Po 阅读全文
posted @ 2018-05-30 18:30 水波潋滟 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 官方推荐标准安装方式 手动: 第一步、python step.py build 第二步、python step.py install 联网下载自动: pip install xxx #python2 pip3 install xxx #python3 #联网自动查找下载前,pip会先在本地相关路径查 阅读全文
posted @ 2018-05-29 23:30 水波潋滟 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 迭代器:iterator 可以被next()函数调用的,并不断返回下一个值的对像,称为迭代器。 迭代对象:iterable 可以直接被用作于for循环的对象,统称为可迭代对像。 阅读全文
posted @ 2018-05-26 10:12 水波潋滟 阅读(113) 评论(0) 推荐(0) 编辑
摘要: Python:yield 和 Generators(生成器)简介 阅读全文
posted @ 2018-05-26 09:12 水波潋滟 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 函数参数定义: 函数参数种类: 默认参数 在函数被调用时,没有对函数的默认参数进行赋值的话,函数将会使用默认参数预先设的值来进行赋值。 注意:编写函数时(是编写函数,不是调用函数),注意参数位置,默认参数要放在位置参数后面。 关键参数 注意:调用函数时(是调用函数,不是编写函数),注意关键参数位置, 阅读全文
posted @ 2018-05-24 11:27 水波潋滟 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 第一天: http://blog.51cto.com/xiong51/1962268 1 2 3 4 5 6 7 1.1 python版本 1.2 python安装 1.3 python解释器 1.4 字符集 1.5 运算符 1.6 条件判断 1.7 脚本示例 1 2 3 4 5 6 7 1.1 p 阅读全文
posted @ 2018-05-23 16:04 水波潋滟 阅读(114) 评论(0) 推荐(0) 编辑