import sys,os a = open(‘1.txt‘) n = 0 aList=[] for line in a.readlines(): # print line.strip(‘\n‘) aList.append(str(line.strip(‘\n‘))) print aList for i in aList: os.system(‘@echo > %s.txt‘%i)
本文出自 “七月” 博客,请务必保留此出处http://374721.blog.51cto.com/364721/1690727
原文地址:http://374721.blog.51cto.com/364721/1690727