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
import random | |
import csv | |
def export_matrix(box, output_file='matrix.csv'): | |
with open(output_file, 'w') as f: | |
writer = csv.writer(f, delimiter=',') | |
for line in box: | |
writer.writerow(line) |
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
#!/usr/bin/python | |
# encoding=utf-8 | |
import gevent | |
import gevent.monkey | |
gevent.monkey.patch_all() | |
import re | |
import functools | |
from cStringIO import StringIO | |
from itertools import permutations | |
from Queue import Queue |