阅读背景:

如何在Python中区别对待文件的第一行?

来源:互联网 

I often need to process large text files containing headers in the first line. The headers are often treated differently to the body of the file, or my processing of the body is dependent on the headers. Either way I need to treat the first line as a special case. I could use simple line iteration and set a flag:I often need to process large text files contai




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: