#批量创建txt文件
import sys,os
a=open("demo.txt")
n=0
aList=[]
for line in a.readlines():
aList.append(str(line.strip('\n')))
print aList
for i in aList:
os.system('@echo > %s.txt'%i)
#批量创建txt文件
import sys,os
a=open("demo.txt")
n=0
aList=[]
for line in a.readlines():
aList.append(str(line.strip('\n')))
print aList
for i in aList:
os.system('@echo > %s.txt'%i)