Skip to content

Instantly share code, notes, and snippets.

@toshinoritakata
Created June 4, 2012 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toshinoritakata/2871188 to your computer and use it in GitHub Desktop.
Save toshinoritakata/2871188 to your computer and use it in GitHub Desktop.
import os
import itertools
l4 = ['aaa', 'bbb', 'ccc']
l3 = ['kk', 'aa', 'bb', 'cc']
l2 = ['axc', 'gGGe']
l1 = ['000']
for a in itertools.product(l1, l2, l3):
print a, os.path.join(*a)
ct = (l1, l2, l3)
for a in itertools.product(*ct):
print a, os.path.join(*a)
cd = [l1, l2, l3]
for a in itertools.product(*cd):
print a, os.path.join(*a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment