擅长:python、mysql、java
<p>Python允许从多个类继承,即</p>
<pre><code>class Button(Control, Window):
...
</code></pre>
<p>但在这种情况下,您应该确切地知道自己在做什么(说到Pythons方法解析顺序(MRO))。我建议你读这本小书:<a href="http://www.cafepy.com/article/python_attributes_and_methods/python_attributes_and_methods.html" rel="nofollow">Python Attributes and Methods</a>。在</p>