整理了一些在学习过程中自己觉得对理解有帮助的资料
什么是类(class)
python-类(class)是什么?怎么用?_wander_ing的博客-CSDN博客_python类是什么
关于 __init__
python 类中一定需要有 __init__方法么?没有的会怎样?_最怕空气突然安静的博客-CSDN博客_python类必须有init吗
如何理解Python类中的__init__() - 知乎 (zhihu.com)
【整理】Python中:self和__init__的含义 + 为何要有self和__init__ – 在路上 (crifan.com)
变量作用域
【整理】Python中变量的作用域(variable scope) – 在路上 (crifan.com)