在python3.8中flask项目运行报错: AttributeError: module 'time' has no attribute 'clock'解决方案

主要原因是因为python3.8中不支持clock了, 需要替换成time.pref_counter()替换就可以了AttributeError: module 'time' has no attribute 'clock'

 

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

 

 修改后已经正常启动

相关文章: