我试图弄清楚如何将长文档、样式转换为字典。
我有这个:
÷H1.
John.
walks,
drives,
eats,
drinks,
flies,
travels,
÷H2.
Peter.
flies,
rides,
swims,
÷H3.
James.
laughs,
cries,
我需要这样的:
÷H1. John. walks,
÷H1. John. drives,
÷H1. John. eats,
÷H1. John. drinks,
÷H1. John. flies,
÷H1. John. travels,
÷H2. Peter. flies,
÷H2. Peter. rides,
÷H2. Peter. swims,
÷H3. James. laughs,
÷H3. James. cries,
谢谢!亚历克斯