问题:
I assume everyone here is familiar with the adage that all text files should end with a newline. 我假设这里的每个人都熟悉所有文本文件应以换行符结尾的格言。 I've known of this "rule" for years but I've always wondered — why? 多年来我一直都知道这个“规则”,但我一直在想 - 为什么?
解决方案:
参考一: https://stackoom.com/question/33pE/为什么文本文件以换行符结尾参考二: https://oldbug.net/q/33pE/Why-should-text-files-end-with-a-newline
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4306265