Qliangw's Blog
学习笔记
Hardware
Bare-Metal
RTOS
Linux
u-boot
kernel
rootfs
debian
application
shell
Programming language
C
Python学习笔记
Python基础知识
1. Python简介.md
2. Python优缺点.md
3. Python2和Python3的介绍.md
4. 命名规则.md
5. 常用关键字.md
6. 注释.md
7. 数据类型.md
8. 公共方法.md
9. 参数.md
10. 面向对象基本概念.md
11. 面向对象基础语法.md
12. 类的封装.md
13. 继承.md
14. 多态.md
15. 类属性和类方法.md
16. 单例.md
17. 捕获异常.md
18. 文件的基本操作.md
Tools
git
jekyll
1. 安装ruby
2. 使用
Docker
Misc
Windows
1. Windows下开启区分大小写属性
2. 解决error: invalid path ‘i2c/aux.c’问题
应用项目
notion_sync_data
1. 安装
2. 配置
3. 使用示例
Qliangw's Blog
study
Programming
Python
basic
类的封装.md
source:
study/Programming/Python/basic/类的封装.md
封装
封装是面向对象编程额一大特点
面向对象编程的第一步–将属性和方法封装到一个抽象的类中
外界使用类创建对象,然后让对象调用方法
对象方法的细节都被封装在类的内部
伪私有属性
__方法名
Previous
Next
2023,
Qliangw
Revision
00634fe
Built with
GitHub Pages
using a
theme
provided by
RunDocs
.
Qliangw's Blog
main
GitHub
Homepage
Issues
Download
This
Software
is under the terms of
GNU General Public License v2.0
.