---
- Harry Potter and the Prisoner of Azkaban
- Harry Potter and the Goblet of Fire
- Harry Potter and the Order of the Phoenix
---
- Memoirs Found in a Bathtub
- Snow Crash
- Ghost World
第二分钟:一个简单的字典
当你沉浸在阅读 Harry Potter 时,你的朋友又寄来了新的列表,这次列表包括了作者的名字:
Stanislaw Lem: Memoirs Found in a Bathtub
Neal Stephenson: Snowcrash
Daniel Clowes: Ghost World
上面的消息在YAML 阅读器看来将分为两行,由一个回车换行分割。
Controlling Words
上面的消息还没完,这是后面的:
Concerning "Jim O'Connor": |
You are receiving Jim O'Connor's mail for several reasons:
- The nameplate on your mailbox still says his name.
- He has told our postman that you screen his mail.
- He is living in your ceiling.
- He held a raygun to the postmans head.
上面我们用一个序列 (sequence)嵌套在了一个map中,序列中的每项代表了在第几步所用的时间。如果每个人都把自己阅读的时间像这样寄给我们,那我们需要给本教程准备一个更准确的名字,比如YAML in Five-Point-One-Two Minutes。这将有点华而不实。(我们可能需要很多的篇幅来写这样的文档。)