1.原始代码 # 原始方法 import time, math start = time.time() # 开始时间 list = [] for i in range(1, 10000000): list.append(math.sqrt(i)) end = time.time()