python记时命令

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Arctic_Beacon/article/details/85266523

import time

start_time = time.time()

......

print('Total processing time: {} seconds'.format(round(time.time() - start_time, 2)))

输出:Total processing data time: 132.31 seconds

start_time = time.time()

......

end_time = time.time()
print('Total processing time:',end_time - start_time)

猜你喜欢

转载自blog.csdn.net/Arctic_Beacon/article/details/85266523
今日推荐