23/01/20 16:01:50.15 mKedYKOT0.net
>>38
import re, sys
for path in sys.argv[1:]:
with open(path, 'r', encoding='utf-8') as fr:
src = fr.read()
ss = re.split(r'\n{5,}', src)
for i, s in enumerate(ss):
with open('{}_{:08d}.txt'.format(path, i), 'w', encoding='utf-8') as fw:
fw.write(s + '\n')