标签:pre numpy start time imp int port date nps
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)
标签:pre numpy start time imp int port date nps
原文地址:https://www.cnblogs.com/PMAM/p/9853334.html