摘要: count = 0 with open('/cm/com.file','rb') as f: while True: buffer = f.read(1024*8192) if not buffer: break count += buffer.count(b"\n") print(count) 阅读全文
posted @ 2020-11-30 22:29 明天OoO你好 阅读(1134) 评论(0) 推荐(0) 编辑