调用time模块下的clock方法查看CPU运行时间
time.clock()
出现报错
AttributeError: module 'time' has no attribute 'clock'
解决方法
time.perf_counter()
调用time模块下的clock方法查看CPU运行时间
time.clock()
出现报错
AttributeError: module 'time' has no attribute 'clock'
解决方法
time.perf_counter()