123456789101112131415 |
- # -*- coding: utf-8 -*-
- # @Author: privacy
- # @Date: 2024-06-27 09:33:01
- # @Last Modified by: privacy
- # @Last Modified time: 2024-09-03 10:20:09
- class Singleton:
- __instance = None
- def __new__(cls, *args, **kwargs):
- if cls.__instance is None:
- cls.__instance = super(Singleton, cls).__new__(cls)
- return cls.__instance
- def __init__(self):
- pass
|