class Single{ companion object { val instance:Single by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) { Single() } } } 2 object Single{ } 来源:https://www.cnblogs.com/rchao/p/11649127.html 标签 single