main.txt
1 2 3 4
main.py
symbols = open('main.txt', 'r').readlines()[0].split()
prefix = symbols[0]
suffixes = symbols[1:]
for suffix in suffixes:
fileName = prefix + suffix + '.txt'
f = open(fileName, 'w')
f.write(prefix + suffix)
f.close()
これはテストされていません