摘要: 新手在学习python时候,会遇到很多的坑,下面来具体说说其中一个。 在使用python编写面向对象的程序时,新手可能遇到TypeError: this constructor takes no arguments这个错误。 例如下面的程序: class Ball: def _init_(self, 阅读全文
posted @ 2016-12-28 23:56 ChengfanYi 阅读(3089) 评论(0) 推荐(0)