startTime = time.clock()AttributeError: module 'time' has no attribute 'clock
python 報錯!
AttributeError module 'time' has no attribute 'clock'
python3.8不支持clock了,替換成time.perf_counter()替換就可以了
文章來源:劉俊濤的博客 歡迎關注公眾號、留言、評論,一起學習。
若有幫助到您,歡迎點擊推薦,您的支持是對我堅持最好的肯定(*^_^*)