报错:

AttributeError module 'time' has no attribute 'clock'

解决方法:

python3.8不支持 clock 了,用time.perf_counter()替换就可以了。