摘要:
通过装饰器处理每个步骤的结果 #autotest.py import threading import time def stepresult(step_number,expect=""): def wrapper(fun): def inner(*args,**kwargs): step={} r 阅读全文
摘要:
python 单例模式 import threading import time class Singleton(object): _instance_lock = threading.Lock() init=False def __init__(self,a): if Singleton.init 阅读全文