标签:alt div range .com append nbsp pre 技术 def
def pySum(n):... #print pySum(10)) import numpy def npSum(n):... #print npSum(10)) from datetime import datetime start = datetime.now() pySum(1000000) delta = datetime.now()-start
import numpy num1 = numpy.arange(0,50,5) num2 = numpy.arange(10) mul = num1**2 + num2**3 print(num1) print(num2) print(mul)
def multiply(n): a = list(range(n)) b = list(range(1,5*n,5)) c = [] for i in range(len(a)): c.append(a[i]**2+b[i]**3) return (c) print(multiply(10))
标签:alt div range .com append nbsp pre 技术 def
原文地址:https://www.cnblogs.com/liuyonghe/p/9829230.html