python报错: AttributeError module 'time' has no attribute 'clock'

Posted 点滴记忆

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python报错: AttributeError module 'time' has no attribute 'clock'相关的知识,希望对你有一定的参考价值。

python版本: 3.8 问题:在python运行代码: import time print(time.clock()) 出现错误 : AttributeError module 'time' has no attribute 'clock' 原因 : Python time.clock在Pyth

以上是关于python报错: AttributeError module 'time' has no attribute 'clock'的主要内容,如果未能解决你的问题,请参考以下文章