#-*-coding:utf-8-*-
#__author:martin
#date:2017/10/19
class Foo:
__v = None
@classmethod
def getInstance(cls):
if cls.__v:
return cls.__v
else:
cls.__v = Foo()
return cls.__v
#-*-coding:utf-8-*-
#__author:martin
#date:2017/10/19
class Foo:
__v = None
@classmethod
def getInstance(cls):
if cls.__v:
return cls.__v
else:
cls.__v = Foo()
return cls.__v