编辑器
import timeit time = timeit.timeit('sum(range(100))', number=10000) print(f'Execution time: {time:.6f} seconds')
Execution time: 0.025431 seconds