擅长:python、mysql、java
<blockquote>
<p>I noticed that it imported a few stuff from builtins including str, int and super</p>
</blockquote>
<p>您不需要从bultins中<code>import</code>东西,因为它们都是默认导入的。在</p>
<blockquote>
<p>is it safe to call it as Python3's <code>super</code> with no arguments?</p>
</blockquote>
<p>否-<code>super</code>不向后兼容,因此必须将参数传递给那里:</p>
<p>Python 3:</p>
<pre><code>class Foo(object):
def __init__(self):
super().__init__()
</code></pre>
<p>Python 2:</p>
^{pr2}$