python文件文本處理:刪除空白行,刪除固定幾行,刪除固定列

話不多說,上代碼 # coding=gbk # clearBlankline def clearBlankline(infile,outfile): infopen=open(infile,'r',encoding='utf-8') outopen=open(outfile,'w',encoding='utf-8') lines=infopen.readlines() for line i
相關文章
相關標籤/搜索