刚接触Python类,尝试写了个几句代码,出现了TypeError: this constructor takes no arguments的错误: 后来发现书本上的__init__()方法是两个下滑线,所以改正后就好了。