from pathlib import Path
import csv,io,json
p=Path(__file__).parent;t=(p/'multiline.csv').read_text(encoding='utf-8');rows=list(csv.DictReader(io.StringIO(t,newline='')));assert len(rows)==2 and '\n' in rows[0]['question'] and rows[0]['answer']=='他说"确认"';print(json.dumps({'physical_lines':len(t.splitlines()),'logical_records':len(rows),'first_record':rows[0]},ensure_ascii=True,indent=2))
