提示time中没有block,time.clock()在python3已经不推荐使用了,在python3.8中被废除了Python 3.8 已移除 clock() 方法 可以使用 time.perf_counter() 或 time.process_time() 方法替代。
把clock替换成perf_counter方法,效果一样