在红帽企业Linux中获取帮助
1.查看命令的帮助1.1 内部命令帮助help COMMANDman bash范例:[00:36:46 root@localhost /test]#type history history 是 shell 内嵌 [00:49:01 root@localhost /test]#help history history: hi...
Python面向对象的三大特性 封装
1.封装的概念封装表示的是,将现实世界事物的:·属性·行为封装到类中,描述为:·成员变量·成员方法从而完成程序对现实世界事物的描述 2. 私有成员2.1 私有成员定义私有成员 对应现...
Python类 魔术方法
1. __init__ 构造方法class student: def __init__(self, name, age, tel): self.name = name self.age = age self.tel = tel print('student类创建了一个类对象') stu1 = student('a',31,...
Python类 基础
1. 类的定义1.1 设计类在程序中设计表格 我们称之为:设计类(class)class Student: name = None #记录学生姓名class是关键字,表示要定义类了类的属性,即定义在类中的变量(成员变量)类的行为...