解决AttributeError: module 'time' has no attribute 'clock'

技术分享 2022-06-14

报错:

AttributeError module 'time' has no attribute 'clock'

解决方法:

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

评论 (0)

发表评论

最多500字符

验证码

暂无评论

成为第一个评论的人吧!