import time
time_begin=time.perf_counter()
for i in range(100000):
print(i)
time_end=time.perf_counter()
print(time_end-time_begin)
python里面计算程序运行时间代码
猜你喜欢
转载自blog.csdn.net/qq_41556273/article/details/83183636
今日推荐
周排行