擅长:python、mysql、java
<p><code>__init__</code>方法必须有4个下划线,就像您在它的<code>def</code>部分所做的那样。在</p>
<p>这是一个Python模式,父类也遵循这个模式:</p>
<pre><code>super(dataGenerator,self).__init__(...)
</code></pre>
<hr/>
<p>主题外:通常,类名以大写字母开头,以区别于普通值变量。因此,<code>DataGenerator</code>将是一个更好的名称,遵循该建议。在</p>