对于一些大文件。
lines_a = len(fa.readlines())
print(lines_a)
而对于Bash(在Mac上)。
wc -l
结果是不同的!
可能的原因是什么?
|
|
从容的绿豆 · Windwos下使用FFmpeg同时显示多个 ...· 1 年前 · |
|
|
大鼻子的椅子 · 将使用Streamlit编写的Python脚 ...· 2 年前 · |
|
|
爱看球的牙膏 · camunda清除缓存_camunda ...· 2 年前 · |
|
|
爱健身的眼镜 · 用Python写书法作品,WOW!-腾讯云开 ...· 2 年前 · |
|
|
淡定的萝卜 · 使用js实现列表无限循环滚动 - ...· 2 年前 · |