摘要: anaconda官网下载安装:https://www.anaconda.com/ https://www.anaconda.com/distribution/ 推荐使用镜像下载 最新版本的(python版本的区别) anaconda用法:查看已经安装的包:pip list 或者 conda list 阅读全文
posted @ 2020-03-10 22:23 Alex东 阅读(843) 评论(0) 推荐(0) 编辑
摘要: 面向对象之 1.成员修饰 2.特殊成员 3.methclass,类之源,type创建 一、成员修饰符 共有成员 私有成员, __字段名 - 无法直接访问,只能间接访问 class Foo: def __init__(self,name,age): self.name = name #self.age 阅读全文
posted @ 2020-03-10 14:30 Alex东 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 封装,构造,继承 1、如何创建类 class 类名: pass 2、创建方法 构造方法,__init__(self,arg) obj = 类('a1') 普通方法 obj = 类(‘xxx’) obj.普通方法名() 3、面向对象三大特性之一:封装 class Bar: def __init__(s 阅读全文
posted @ 2020-03-10 13:48 Alex东 阅读(125) 评论(0) 推荐(0) 编辑