import time
start = time.clock() #开始计时
#一大堆程序
elapsed = (time.clock() - start) #结束计时
print("running time:"+str(elapsed)+"s") #印出时间
python 计算程序运行的时间
猜你喜欢
转载自blog.csdn.net/weixin_39874268/article/details/83048435
今日推荐
周排行