上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 42 下一页
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- # 作者:Presley # 邮箱:1209989516@qq.com # 时间:2018-11-04 # python内置方法 class A: n = "A" def f2(self): print("from A") class B(A): n = "B" ... 阅读全文
posted @ 2018-11-04 10:57 Presley 阅读(305) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/hellojesson/p/5961570.html 阅读全文
posted @ 2018-10-28 20:48 Presley 阅读(234) 评论(0) 推荐(0) 编辑
摘要: pip install PyMysql pip install PyMysql pip install PyMysql pip install PyMysql pip install PyMysql pip install PyMysql 数据库连接 #!/usr/bin/python3 impor 阅读全文
posted @ 2018-10-24 16:46 Presley 阅读(208) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/gs80140/article/details/51496925 阅读全文
posted @ 2018-10-22 21:40 Presley 阅读(260) 评论(0) 推荐(0) 编辑
摘要: k8s教程地址 k8s教程地址 安装https://github.com/gjmzj/kubeaszhttps://github.com/opsnull/follow-me-install-kubernetes-clusterk8s中文文档篇理论,介绍了云原生:https://github.com/ 阅读全文
posted @ 2018-10-22 20:28 Presley 阅读(757) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python# -*- coding:utf-8 -*-# 作者:Presley# 邮箱:1209989516@qq.com# 时间:2018-10-21# 新式类和经典类class A: n = "A" def f2(self): print("from A")cla 阅读全文
posted @ 2018-10-21 19:24 Presley 阅读(216) 评论(0) 推荐(0) 编辑
摘要: #!/usr/bin/env python # -*- coding:utf-8 -*- # 作者:Presley # 邮箱:1209989516@qq.com # 时间:2018-08-05 # 类的方法 class Animal: def __init__(self,name): self.name = name self.__num = None ... 阅读全文
posted @ 2018-10-21 19:05 Presley 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 一、字段 1、字段包括:普通字段和静态字段,他们在定义和使用中有所区别,而最本质的区别是内存中保存的位置不同。 a、普通字段属于对象(实例变量) b、静态字段属于类(类变量) 二、属性 对于属性,有以下三个知识点: 属性的基本使用 属性的两种定义方式 1、属性的基本使用 a、类是不能访问实例变量的 阅读全文
posted @ 2018-10-21 13:13 Presley 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 一、多态 多态性(polymorphisn)是允许你将父对象设置成为和一个或更多的他的子对象相等的技术,赋值之后,父对象就可以根据当前赋值给它的子对象的特性以不同的方式运作,简单的说就是一句话:允许将子类类型的指针赋值给父类类型的指针。 那么,多态的作用是什么呢?我们知道,封装可以隐藏实现细节,使得 阅读全文
posted @ 2018-10-21 11:39 Presley 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1.什么是CA证书。 ◇ 普通的介绍信 想必大伙儿都听说过介绍信的例子吧?假设 A 公司的张三先生要到 B 公司去拜访,但是 B 公司的所有人都不认识他,他咋办捏?常用的办法是带公司开的一张介绍信,在信中说:兹有张三先生前往贵公司办理业务,请给予接洽......云云。然后在信上敲上A公司的公章。 张 阅读全文
posted @ 2018-10-12 09:54 Presley 阅读(7487) 评论(0) 推荐(2) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 42 下一页