解决AttributeError: module 'time' has no attribute 'clock' 发表于 2022-06-14 更新于 2026-03-03 分类于 技术分享 报错: 1AttributeError module 'time' has no attribute 'clock' 解决方法: python3.8不支持 clock 了,用time.perf_counter()替换就可以了。