环境 python 3.8 问题: 在python运行代码: import time print(time.clock()) 出现错误: 原因 Python time.clock在Python3.3废弃,在Python3.8中将被移除 解决方法 使用perf_counter()方法