首页
移动开发
物联网
服务端
编程语言
企业开发
数据库
业界资讯
其他
搜索
AttributeError: module ‘time‘ has no attribute ‘clock‘
企业开发
2024-11-02 17:44:26
阅读次数: 0
一 、AttributeError: module 'time' has no attribute 'clock'
原因: Python ≥ 3.8时,不再支持time.clock。
解决方案:
ctrl+单击
最后一行,跳转到问题根源地方。
将
time.clock
更改为
time.perf_counter()
就解决啦!
猜你喜欢
转载自
blog.csdn.net/qq_45670495/article/details/140937730
AttributeError: module 'time' has no attribute 'clock'
AttributeError: module ‘time‘ has no attribute ‘clock‘
[Python]报错:AttributeError: module ‘time‘ has no attribute ‘clock‘解决
成功解决AttributeError: module ‘time‘ has no attribute ‘clock‘
已解决(Python3.9异常)AttributeError: module ‘time‘ has no attribute ‘clock‘
Python 报错:module 'pygame.time' has no attribute 'clock'
python3.8中module 'time' has no attribute 'clock'
python3.9中module ‘time‘ has no attribute ‘clock‘
AttributeError: module '***' has no attribute '***'
AttributeError: 'module' object has no attribute 'main'
AttributeError: module 'matplotlib' has no attribute 'verbose'(pycharm)
AttributeError: module 'tensorflow' has no attribute 'mul'
AttributeError: module 'sys' has no attribute 'setdefaultencoding'
Tensorflow 报错,AttributeError: 'module' object has no attribute
AttributeError: 'module' object has no attribute 'detect'
Python AttributeError: 'module' object has no attribute 'posseg'
AttributeError: module 'requests' has no attribute 'get'
AttributeError: module 'tkinter' has no attribute 'messagebox'
AttributeError: module 'pip' has no attribute 'main'
AttributeError: 'module' object has no attribute 'version'
AttributeError: module 'pickle' has no attribute 'dump'
AttributeError: module 'logging' has no attribute 'basicConfig'
AttributeError: module 'argparse' has no attribute 'ArgumentParser'
AttributeError: module 'urllib' has no attribute 'urlopen'
AttributeError: module 'pandas' has no attribute 'Factor'
解决AttributeError: module 'urllib' has no attribute 'urlopen'
Python AttributeError: module 'sys' has no attribute 'setdefaultencoding'
AttributeError: module 'DBBase' has no attribute 'DBBase'
AttributeError: module 'serial' has no attribute 'Serial'
AttributeError: module 'urllib' has no attribute 'parse'
今日推荐
周排行
Django xadmin 中 m2m_transfer 和 ueditor 同时存在导致显示失效的问题
【Kafka】Kafka指定分区消费
2019最新《 谷粒学院-MySQL高级课程》
14. Longest Common Prefix LeetCode题解
02linux基础服务-rsync+sersync
【知识强化第一章】操作系统概述 1.1 操作系统的基本概念
mongodb基础(3)导入导出
VueJS----[全局API-2.4]----Vue的生命周期(钩子函数)
执行python -m uiautomator2 init 报错
【leetcode】合并两个有序链表(python实现)
每日归档
更多
2025-03-01(0)
2025-02-28(0)
2025-02-27(0)
2025-02-26(0)
2025-02-25(0)
2025-02-24(0)
2025-02-23(0)
2025-02-22(0)
2025-02-21(0)
2025-02-20(0)