Skip to content

Instantly share code, notes, and snippets.

@tengpeng
Created April 10, 2016 15:28
Show Gist options
  • Save tengpeng/1047caa1855b4292284e39c7740224ed to your computer and use it in GitHub Desktop.
Save tengpeng/1047caa1855b4292284e39c7740224ed to your computer and use it in GitHub Desktop.
mark location
t = time.time()
idx = []
for key, value in bid_img.iteritems():
for v in value:
loc = -1
for pid in pid_lst:
loc += 1
if v == pid:
idx.append(loc)
print "{0:.1f}".format(time.time()-t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment