E. Almqvist 4 years ago
parent 3da44ee143
commit 5d69f9476a
  1. 4
      block.py

@ -38,7 +38,7 @@ def splitInput(inputL, n):
out = [] out = []
inputLen = len(inputL) inputLen = len(inputL)
x = inputLen / float(n) x = inputLen / float(n)
last = 0.0 last = 0.0
while last < inputLen: while last < inputLen:
out.append( inputL[ int(last):int(last + x) ] ) out.append( inputL[ int(last):int(last + x) ] )
@ -66,7 +66,7 @@ if( math.floor(amountBlocks) != math.ceil(amountBlocks) ):
exit() exit()
Blocks = splitInput(TXT, amountBlocks) Blocks = splitInput(TXT, amountBlocks)
BlocksDe = [None] * len(Blocks) BlocksDe = [None] * len(Blocks)
count = -1 count = -1
for block in Blocks: for block in Blocks:

Loading…
Cancel
Save