Python 程序运行计时 计时器 time.perf_counter()
实例1import timelimit = 10*100*1000start = time.perf_counter()while True: limit -= 1 if limit <= 0: breakdelta = time.perf_counter() - startprint("程序运行的时间是:{}秒".format(delta)...