Python 99

Python 100 [Python 100] Python 100

AB,,(), C

#!/usr/bin/python # -*- coding: UTF-8 -*- if __name__ == '__main__': import string fp = open('test1.txt') a = fp.read() fp.close() fp = open('test2.txt') b = fp.read() fp.close() fp = open('test3.txt','w') l = list(a + b) l.sort() s = '' s = s.join(l) fp.write(s) fp.close()

test1.txttest2.txt

test3.txt

123456

Python 100 [Python 100] Python 100