王殊勋的个人博客

只要开始,虽远不迟!

  • 首页
  • 关于
  • 分类
  • 归档
  • 搜索
  • 文章目录
  • 站点概览
王殊勋

王殊勋

关注互联网运维技术发展
1055 日志
3 分类

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

发表于 2022-06-14 更新于 2026-03-03 分类于 技术分享

报错:

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

解决方法:

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

解决AttributeError: module 'sys' has no attribute 'setdefaultencoding'
dpkg清理rc状态的包
© 2007 - 2026 本站内容可能来自于互联网,如有侵权请联系站长。
0%