-
-
Save yeyuguo/927ff53b48d69376071ab439e7be0952 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from time import time | |
t = time() | |
lista = [1,2,3,4,5,6,7,8,9,10] | |
listb =[0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,0.01] | |
len1=len(lista) | |
len2=len(listb) | |
for i in xrange (1000000): | |
for a in xrange(len1): | |
temp=lista[a] | |
for b in xrange(len2): | |
x=temp+listb[b] | |
print "total run time:" | |
print time()-t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment