来源:https://stackoverflow.com/questions/64419489/converting-a-function-into-a-singleton-class-that-returns-one-instance 标签 python python-2.7 logging singleton single-instance