首页 > TAG信息列表 > timestart
python计算耗时,可多次获取耗时
定义 consoleTimeDict = {"默认": 0} def consoleTime(key="默认"): timeStart = time.time() consoleTimeDict[key] = timeStart return timeStart def consoleTimeEnd(key="默认"): timeStart = consoleTimeDict[key] timeEpython计算耗时,可多次获取耗时
定义 consoleTimeDict = {"默认": 0} def consoleTime(key="默认"): timeStart = time.time() consoleTimeDict[key] = timeStart return timeStart def consoleTimeEnd(key="默认"): timeStart = consoleTimeDict[key] timeE