f = open('data.txt', 'r', encoding='utf8')
data = f.readlines()
f.close()
segment = len(data) // 40
for index in range(40):
    f = open('data' + str(index) + '.txt', 'w', encoding='utf8')
    for i in data[segment * index:segment * (index + 1)]:
        f.write(i)
    f.close()

189a23612fc58c7865eacec9c7e4ed94802b85d2
<mask token>

<mask token>
f.close()
<mask token>
for index in range(40):
    f = open('data' + str(index) + '.txt', 'w', encoding='utf8')
    for i in data[segment * index:segment * (index + 1)]:
        f.write(i)
    f.close()

f = open('data.txt', 'r', encoding='utf8')
data = f.readlines()
f.close()
segment = len(data) // 40
for index in range(40):
    f = open('data' + str(index) + '.txt', 'w', encoding='utf8')
    for i in data[segment * index:segment * (index + 1)]:
        f.write(i)
    f.close()
