class Foo: pass obj = Foo()
from a1 import obj print(obj) from a1 import obj print(obj)
【设计模式】单例模式
原文:http://www.cnblogs.com/lucaq/p/7602670.html