擅长:python、mysql、java
<p>您需要的是在python中实现<a href="http://en.wikipedia.org/wiki/Singleton_pattern" rel="nofollow noreferrer">Singleton</a>设计模式</p>
<p>我找到了这个<a href="http://code.activestate.com/recipes/52558/" rel="nofollow noreferrer">implementation</a>我希望它有帮助</p>