python 输出文件到txt
发布网友
发布时间:2022-04-27 02:04
我来回答
共1个回答
热心网友
时间:2022-04-07 13:28
name =['a1','a2','a3']
seq=['seq11111','seqs22222','seq33333']
f = open("F:/1.txt", "w+")
f.write("name\tseq\n")
for i in range(0, len(name)):
f.write(name[i] + "\t" + seq[i] + "\n")
f.close()