計(jì)算經(jīng)過的時(shí)間在python中的操作
提問人:楊紫紅發(fā)布時(shí)間: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)
繼續(xù)查找其他問題的答案?
相關(guān)視頻回答
點(diǎn)擊加載更多評(píng)論>>