#CSV-TXT
f_csv=open('../Stu_pack/学生考勤.csv','rt')
f_txt=open('副本_学生考勤.txt','w+')
ls=[]
for line in f_csv:
line=line.replace('\n','') #消除每行后的换行符
ls.append(line.split(','))
for row in ls:
print(row)
f_txt.write('\t\t'.join(row)+'\n')
f_csv.close()
f_txt.close()
另外附上一张图片