0
点赞
收藏
分享

微信扫一扫

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

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

python 报错!

AttributeError module 'time' has no attribute 'clock'

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




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

你要保守你心,胜过保守一切。

作者:刘俊涛的博客​




举报

相关推荐

0 条评论