擅长:python、mysql、java
<p>你需要创建可以类的模块</p>
<pre><code>class MySuperClass:
def function2(self):
print 'function2 has been called'
def function3(self, someArg):
print 'function3 has been called with argument: '+ someArg
</code></pre>
<p><a href="http://docs.python.org/2/tutorial/modules.html" rel="nofollow">Python docs</a></p>