对于一些大文件,
lines_a = len(fa.readlines()) print(lines_a)
而对于Bash(在Mac上):
wc -l
结果是不同的!
可能的原因是什么?
python bash
bash ×1
python ×1