|
|
|
@ -62,7 +62,8 @@ def main(*argv):
|
|
|
|
|
result_writer = csv.writer(o, delimiter=',', quotechar='"', |
|
|
|
|
quoting=csv.QUOTE_ALL) |
|
|
|
|
m = {} |
|
|
|
|
for i in xrange(0, 3): |
|
|
|
|
# print(j, ':', order) |
|
|
|
|
for i in xrange(0, len(order)): |
|
|
|
|
result_writer.writerow(['count', order[i]]) |
|
|
|
|
# print('count , ', order[i], ' / ', type(order[i])) |
|
|
|
|
for j in x.keys(): |
|
|
|
@ -70,10 +71,10 @@ def main(*argv):
|
|
|
|
|
# print(j, ', ', s) |
|
|
|
|
lo_result = mc[j][order[i]] |
|
|
|
|
# print(order[i], ' == ', len(lo_result)) |
|
|
|
|
if i == 2 and len(mc[j]) > 3: |
|
|
|
|
for _i in xrange(3, len(mc[j])): |
|
|
|
|
lo_result = lo_result.union(mc[j][order[_i]]) |
|
|
|
|
# print(' ==EX== ', len(lo_result)) |
|
|
|
|
# if i == 2 and len(mc[j]) > 3: |
|
|
|
|
# for _i in xrange(3, len(mc[j])): |
|
|
|
|
# lo_result = lo_result.union(mc[j][order[_i]]) |
|
|
|
|
# # print(' ==EX== ', len(lo_result)) |
|
|
|
|
if j not in m: |
|
|
|
|
m[j] = lo_result |
|
|
|
|
else: |
|
|
|
|