1. 作用:

python规定的 当创建一个类的实例对象时,python就会隐形自动调用这个方法,python会默认定义这个构造方法

2. 语法:

def __init__(self,...): 代码块

3. 快照: