Administrator
2023-08-17 090c62e276a49fb5d16438a4a33f06522dbccc1f
test/test.py
@@ -5,21 +5,23 @@
from log_module.log import logger_l2_process_time, logger_debug
_dict = {}
class TestInstance:
    __instance = None
    def __new__(cls, *args, **kwargs):
        if not cls.__instance:
            cls.__instance = super(TestInstance, cls).__new__(cls, *args, **kwargs)
            print(cls.__instance)
        return cls.__instance
    # def __new__(cls, *args, **kwargs):
    #     if not cls.__instance:
    #         cls.__instance = super(TestInstance, cls).__new__(cls, *args, **kwargs)
    #         print(cls.__instance)
    #     return cls.__instance
    def test(self):
        i=2
        i+=1
        i=1
        _dict["test"]=i+2
_dict = {}
def test_time(instance, i):