今天安装了thulac运行中出现了module 'time' has no attribute 'clock'错误,经过查询发现是
Python3.8不再支持time.clock,但在调用时依然包含该方法;
有效处理:
用time.perf_counter()替换。
感谢Python3.8 异常AttributeError module 'time' has no attribute 'clock'_搞怪小新-优快云博客
今天安装了thulac运行中出现了module 'time' has no attribute 'clock'错误,经过查询发现是
Python3.8不再支持time.clock,但在调用时依然包含该方法;
用time.perf_counter()替换。
感谢Python3.8 异常AttributeError module 'time' has no attribute 'clock'_搞怪小新-优快云博客