在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'

 

 修改后已经正常启动

相关文章:

  • 2021-09-09
  • 2021-10-09
  • 2021-12-13
  • 2021-06-06
  • 2021-07-27
  • 2021-05-07
  • 2022-01-23
  • 2021-08-17
猜你喜欢
  • 2021-07-13
  • 2021-09-15
  • 2021-12-19
  • 2021-11-02
  • 2021-11-28
  • 2021-08-27
  • 2021-10-09
相关资源
相似解决方案