AttributeError: module 'time' has no attribute 'clock' 使用 time.perf_counter() 替换 time.clock() 即可 如果觉得文章不错,可以分享给其他人哟~