In Python, why do files iterate line by lines but their read() method goes char by char?

前端 未结 0 818
梦如初夏
梦如初夏 2021-02-07 05:17

I would like to understand why Python\'s built-in iterator for file-handling goes line by line (I suppose by identifying "/n"?) whereas the built in read()

相关标签:
回答
  • 消灭零回复
提交回复
热议问题