import time
t1 = time.time()
print(t1)
a = 0
for i in range(1000000):
a = a + i
print(a)
t2 = time.time()
print(t2)
print(t2-t1)
shanzhi -查看电脑的计算器能力
最新推荐文章于 2022-03-02 15:07:42 发布
import time
t1 = time.time()
print(t1)
a = 0
for i in range(1000000):
a = a + i
print(a)
t2 = time.time()
print(t2)
print(t2-t1)