计算经过的时间在python中的操作
提问人:杨紫红发布时间:2020-11-19
>>> def lots_of_numbers(max):
u t1 = time.time()
v for x in range(0, max):
print(x)
w t2 = time.time()
x print('it took %s seconds' % (t2-t1))
>>> lots_of_numbers(1000)
继续查找其他问题的答案?
相关视频回答
回复(0)
点击加载更多评论>>