学习笔记(2):零基础掌握 Python 入门到实战-方法多态,拒绝隔离

立即学习:https://edu.csdn.net/course/play/26676/339582?utm_source=blogtoedu

Python中通过私有化的方式实现封装,具体指的是在私有属性或方法前用双下划线进行私有化,如__name, __hello()

猜你喜欢

转载自blog.csdn.net/weixin_44566432/article/details/107809414