lovebing

startTime = time.clock()AttributeError: module \'time\' has no attribute \'clock

python 报错!

AttributeError module \'time\' has no attribute \'clock\'

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

 

 

文章来源:刘俊涛的博客 欢迎关注公众号、留言、评论,一起学习。

 

若有帮助到您,欢迎点击推荐,您的支持是对我坚持最好的肯定(*^_^*)

分类:

技术点:

相关文章:

  • 2021-09-09
  • 2021-10-09
  • 2021-12-13
  • 2021-06-06
  • 2021-07-27
  • 2021-05-07
  • 2022-01-23
  • 2021-08-17
猜你喜欢
  • 2021-11-14
  • 2021-09-15
  • 2021-12-19
  • 2021-11-02
  • 2021-11-28
  • 2021-08-27
  • 2021-10-09
相关资源
相似解决方案