timeit 的功能和用法timeit 模块提供了测试一小段代码运行时间的功能。 ... 从命令行调用python -m timeit '"-".join([str(n) for n in range(100)])' # 从REPL调用>>> ...
確定! 回上一頁