# Xyzzy（计算机）

**Xyzzy** 是1975至1976年文字冒险游戏《巨洞冒险》（*Colossal Cave Adventure*，又称 *Advent*）中的一个魔法词，由威尔·克劳瑟（Will Crowther）编写。在游戏中键入该词，玩家便会在洞穴中两个相距遥远的地点之间瞬移。它后来成为黑客文化中正典级的魔法词、文字界面游戏中的传统彩蛋、编程中的元句法变量，互动小说社区一年一度的XYZZY奖也以它命名。<sup>[1](https://www.ifwiki.org/Xyzzy)</sup><sup> • </sup><sup>[2](https://fossies.org/linux/jargon/html/X/xyzzy.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由威尔·克劳瑟在初版《巨洞冒险》中实现的魔法词；玩家遇到的第一个魔法词，可将玩家角色在两个地点之间传送<sup>[1](https://www.ifwiki.org/Xyzzy)</sup> |
| 失败响应 | 在有效地点之外，游戏回答“什么也没有发生”，这句话后来被操作系统、聊天客户端和后世游戏反复沿用<sup>[2](https://fossies.org/linux/jargon/html/X/xyzzy.html)</sup><sup> • </sup><sup>[3](https://www.bitmapbooks.com/blogs/news/what-s-the-magic-word-learn-about-the-original-cheat-code)</sup> |
| 伴生词 | *Plugh* 与 *plover*，扩展版游戏中的另外两个魔法词；Infocom的《Zork》对xyzzy的回答是“一个空洞的声音说：‘傻瓜。’”<sup>[1](https://www.ifwiki.org/Xyzzy)</sup><sup> • </sup><sup>[3](https://www.bitmapbooks.com/blogs/news/what-s-the-magic-word-learn-about-the-original-cheat-code)</sup> |
| 发音 | 据《行话文件》，读作 /X·Y·Z·Z·Y/、/X·Y·ziz'ee/、/ziz'ee/ 或 /ik·ziz'ee/；克劳瑟本人读作“zizzy”<sup>[2](https://fossies.org/linux/jargon/html/X/xyzzy.html)</sup><sup> • </sup><sup>[4](https://www.digitalhumanities.org/dhq/vol/1/2/000009/000009_01.html)</sup> |
| 元句法用法 | 黑客标准元句法变量表中的第十二个：foo、bar、baz、qux、quux、corge、grault、garply、waldo、fred、plugh、xyzzy、thud<sup>[5](https://www.rfc-editor.org/rfc/pdfrfc/rfc3092.txt.pdf)</sup> |
| 扫雷秘籍 | 早期Windows版《扫雷》有一个作弊模式，键入 `xyzzy<回车><右Shift>` 触发，屏幕左上角像素会根据光标是否悬停在炸弹上而变色<sup>[2](https://fossies.org/linux/jargon/html/X/xyzzy.html)</sup> |
| 同名事物 | 刊物《XYZZYnews》以及一年一度的互动小说XYZZY奖<sup>[1](https://www.ifwiki.org/Xyzzy)</sup><sup> • </sup><sup>[6](https://xyzzyawards.org/awards/)</sup> |

## 在《冒险》中的起源

威尔·克劳瑟是BBN公司的程序员，也是一名洞穴探险者。1975至1976学年，他为PDP-10用FORTRAN写成了《冒险》，游戏中的洞穴以肯塔基州猛犸洞系的巨洞段为蓝本。<sup>[7](https://code198x.com/vault/games/colossal-cave-adventure/)</sup>游戏中，碎屑室墙上的一张纸条写着“墙上的纸条写着‘魔法词XYZZY’”，在正确的地点键入该词，玩家便会在地面上的小屋与洞穴深处某点之间瞬移。<sup>[8](https://jerz.setonhill.edu/if/crowther/advdat.77-03-11)</sup><sup> • </sup><sup>[3](https://www.bitmapbooks.com/blogs/news/what-s-the-magic-word-learn-about-the-original-cheat-code)</sup>

**克劳瑟为何选择这个词。** 塞顿希尔大学数字人文学者丹尼斯·G·杰兹（Dennis G. Jerz）找回了克劳瑟的原始源代码。据他所述，克劳瑟的姐姐贝蒂·布鲁姆（Betty Bloom）是最初的试玩者之一，她回忆说自己曾要求提供一种跳过进洞例行步骤的办法；克劳瑟证实，他创造这个词正是为了她，因为她性子急，想要一条捷径。<sup>[4](https://www.digitalhumanities.org/dhq/vol/1/2/000009/000009_01.html)</sup>布鲁姆说XYZZY是家里用来核验孩子身份的口令，克劳瑟则表示：“XYZZY不是家庭口令——我是纯粹为游戏凭空造出来的。”<sup>[4](https://www.digitalhumanities.org/dhq/vol/1/2/000009/000009_01.html)</sup>在2007年的一次采访中，他解释了自己的标准：“魔法词应该看上去古怪，却又多少能读出声来——XYZZY在这方面似乎挺合适。我当时正考虑去施乐（XEROX）工作，这大概让我想到以X开头。”他还说，自己从未听说过把XYZZY当作记忆叉积口诀的数学助记法。<sup>[4](https://www.digitalhumanities.org/dhq/vol/1/2/000009/000009_01.html)</sup>

唐·伍兹（Don Woods）于1976至1977年制作的扩展版又增添了魔法词plugh和plover，可将玩家送往和送离洞穴地点Y2以及一个存放宝物的房间。<sup>[3](https://www.bitmapbooks.com/blogs/news/what-s-the-magic-word-learn-about-the-original-cheat-code)</sup>在错误的地点念出任何魔法词，得到的都是“什么也没有发生”。<sup>[2](https://fossies.org/linux/jargon/html/X/xyzzy.html)</sup>

## 在黑客文化中的传播

《冒险》经唐·伍兹扩展后在早期ARPANET上广泛流传，因而其中的语句——包括“一片蜿蜒小径的迷宫，全都一模一样”和魔法词“xyzzy”——被挪用在许多场合。<sup>[9](https://digitalhumanities.org/dhq/vol/4/2/000089/000089.html)</sup>黑客词典《行话文件》将xyzzy定义为“正典的‘魔法词’”，并指出在文字界面游戏中让xyzzy作为彩蛋出现是一种传统。<sup>[2](https://fossies.org/linux/jargon/html/X/xyzzy.html)</sup>

**空操作命令与作弊码。** Xyzzy曾在多个操作系统上被实现为未公开的空操作命令。在Data General的AOS/VS中，键入它通常得到“什么也没有发生”，而该系统后来的32位版本则回答“发生的事翻了一倍”。<sup>[2](https://fossies.org/linux/jargon/html/X/xyzzy.html)</sup>一个彩蛋档案补充说，在早期AOS/VS命令行版本中，xyzzy命令接受开关和参数，而Data General给AOS/VS的代号正是“magic”。<sup>[10](https://eeggs.com/items/13476.html)</sup>Windows版mIRC聊天客户端对 /xyzzy 的回应是“什么也没有发生”。<sup>[3](https://www.bitmapbooks.com/blogs/news/what-s-the-magic-word-learn-about-the-original-cheat-code)</sup>

最著名的非游戏复用是《扫雷》秘籍：微软Windows下该游戏的早期版本中，玩家键入 `xyzzy`、按回车、再按住右Shift，雷的位置便会显露，屏幕左上角像素会根据光标是否悬停在炸弹上而变色。该功能在[Windows 98](https://www.edgepedia.org/zh/windows-98)中消失，又在Windows 2000中重现。<sup>[2](https://fossies.org/linux/jargon/html/X/xyzzy.html)</sup>

**元句法变量。** 在编程中，xyzzy常被用作元句法变量，即任何事物的占位名称，老一代黑客程序员尤其如此。<sup>[11](https://academickids.com/encyclopedia/index.php/Metasyntactic_variable)</sup>RFC 3092是2001年4月一份关于“foo”词源的幽默文档，其中列出标准序列为foo、bar、baz、qux、quux、corge、grault、garply、waldo、fred、plugh、xyzzy、thud，xyzzy排在接近末尾处。<sup>[5](https://www.rfc-editor.org/rfc/pdfrfc/rfc3092.txt.pdf)</sup>该词也作为示例值出现在互联网标准文档中：RFC 2616和RFC 7232的HTTP示例中使用了 `ETag: "xyzzy"` 和 `If-None-Match: "xyzzy"`。<sup>[12](https://www.rfc-editor.org/rfc/rfc2616.pdf)</sup><sup> • </sup><sup>[13](https://www.rfc-editor.org/rfc/pdfrfc/rfc7232.txt.pdf)</sup>一篇关于游戏史的捷克语文章指出了它在编程中的另一用途：由于《冒险》通常回答“什么也没有发生”，xyzzy被用作占位符，代表一条暂时什么都不做、日后会被真实代码替换的命令。<sup>[14](https://www.root.cz/clanky/historie-vyvoje-pocitacovych-her-131-cast-od-textovek-ke-grafickym-adventuram/)</sup>

## 互动小说中的传统

这个魔法词一路传入了《冒险》所开创的游戏类型。Infocom的《Zork》系列对xyzzy以及plugh和plover的回应是“一个空洞的声音说：‘傻瓜。’”——这个玩笑是对《冒险》的反转：在《冒险》中，正是一个空洞的声音告诉玩家plugh这个词。<sup>[1](https://www.ifwiki.org/Xyzzy)</sup>许多现代互动小说游戏都会对魔法词给出幽默回应，有时也涉及那个空洞的声音。<sup>[1](https://www.ifwiki.org/Xyzzy)</sup>

一个由社区维护的XYZZY回应合集由大卫·韦尔伯恩（David Welbourn）从众多解析器类作品中汇编而成，记录了其间的种种变化：有些游戏以各种变体的“什么也没有发生”作答，有些把玩家瞬移，有些杀死玩家，有些发放物品；还有一款游戏奖励一件T恤，上面写着“我用了魔法词XYZZY，得到的只有这件破T恤”。<sup>[15](https://www.plover.net/~davidw/responses/xyzzy.html)</sup>该合集的编者形容XYZZY是“这条古老内部玩笑式的命令，每一位解析器类互动小说的作者都必须为它想出一个机巧的回应”。<sup>[15](https://www.plover.net/~davidw/responses/xyzzy.html)</sup>

创作系统把这一玩笑形式化了。《Inform设计师手册》用xyzzy作为定义新动词的示例：两行Inform代码创建出一个魔法词动词，永远回答“什么也没有发生”，除非某条before规则在某些魔法地点介入。<sup>[16](https://www.inform-fiction.org/manual/html/s30.html)</sup>

## 同名事物与遗产

这个词在互动小说社区中的地位已制度化。互动小说刊物《XYZZYnews》和一年一度的XYZZY奖都以这个魔法词命名。<sup>[1](https://www.ifwiki.org/Xyzzy)</sup>XYZZY奖表彰上一年度发行的最佳互动小说作品，奖项类别包括最佳写作和最佳谜题。<sup>[6](https://xyzzyawards.org/awards/)</sup>萨姆·卡博·阿什韦尔（Sam Kabo Ashwell）从2014年起组织了每一届评奖，直到2024年将奖项交给新的组织者。<sup>[17](https://www.ifwiki.org/XYZZY_Awards)</sup>2021年最佳游戏得主是阿曼达·沃克（Amanda Walker）的《What Heard Heard of, Ghost Guessed》，玩家键入魔法词时，游戏会显示诗歌。<sup>[3](https://www.bitmapbooks.com/blogs/news/what-s-the-magic-word-learn-about-the-original-cheat-code)</sup>

也有人为这个词提出了一个可能早于《冒险》的源头：《行话文件》指出，[L. 弗兰克·鲍姆](https://www.edgepedia.org/zh/l-frank-baum)（L. Frank Baum）的《绿野仙踪》中有一段，多萝西念“Ziz-zy, zuz-zy, zik!”召唤飞猴，暗示了一个语音上的祖先，不过克劳瑟说这个词是他自己发明的。<sup>[2](https://fossies.org/linux/jargon/html/X/xyzzy.html)</sup><sup> • </sup><sup>[4](https://www.digitalhumanities.org/dhq/vol/1/2/000009/000009_01.html)</sup>游戏写成半个世纪之后，这个词仍在使用：从让本地语言模型充当互动小说游戏主持人的npm包<sup>[18](https://www.npmjs.com/package/%40britt/xyzzy)</sup>，到同名的、可运行Z机器游戏的Discord机器人<sup>[19](https://orangestar.dev/xyzzy/)</sup>。

## References

1. [Xyzzy, IFWiki](https://www.ifwiki.org/Xyzzy)
2. [xyzzy, The Jargon File (Fossies mirror)](https://fossies.org/linux/jargon/html/X/xyzzy.html)
3. [What's the magic word? Learn about the original cheat code, Bitmap Books](https://www.bitmapbooks.com/blogs/news/what-s-the-magic-word-learn-about-the-original-cheat-code)
4. [Dennis G. Jerz, "Somewhere Nearby is Colossal Cave: Examining Will Crowther's Original 'Adventure' in Code and in Kentucky", Digital Humanities Quarterly 1.2 (2007)](https://www.digitalhumanities.org/dhq/vol/1/2/000009/000009_01.html)
5. [RFC 3092, Etymology of "Foo" (1 April 2001)](https://www.rfc-editor.org/rfc/pdfrfc/rfc3092.txt.pdf)
6. [2022 XYZZY Awards site](https://xyzzyawards.org/awards/)
7. [Colossal Cave Adventure, Code Like It's 198x](https://code198x.com/vault/games/colossal-cave-adventure/)
8. [Crowther's original Adventure data file (advdat.77-03-11), Jerz's Literacy Weblog](https://jerz.setonhill.edu/if/crowther/advdat.77-03-11)
9. ["Twisty Little Passages Almost All Alike: Applying the FRBR Model to a Classic Computer Game", Digital Humanities Quarterly 4.2 (2010)](https://digitalhumanities.org/dhq/vol/4/2/000089/000089.html)
10. [Data General AOS/VS Easter Egg - Magic in AOS, eeggs.com](https://eeggs.com/items/13476.html)
11. [Metasyntactic variable, Academic Kids](https://academickids.com/encyclopedia/index.php/Metasyntactic_variable)
12. [RFC 2616, HTTP/1.1 (June 1999)](https://www.rfc-editor.org/rfc/rfc2616.pdf)
13. [RFC 7232, HTTP/1.1 Conditional Requests (June 2014)](https://www.rfc-editor.org/rfc/pdfrfc/rfc7232.txt.pdf)
14. [Historie vývoje počítačových her (131. část), Root.cz](https://www.root.cz/clanky/historie-vyvoje-pocitacovych-her-131-cast-od-textovek-ke-grafickym-adventuram/)
15. [XYZZY Responses, collected by David Welbourn](https://www.plover.net/~davidw/responses/xyzzy.html)
16. [The Inform Designer's Manual, §30: How verbs are parsed](https://www.inform-fiction.org/manual/html/s30.html)
17. [XYZZY Awards, IFWiki](https://www.ifwiki.org/XYZZY_Awards)
18. [@britt/xyzzy, npm](https://www.npmjs.com/package/%40britt/xyzzy)
19. [xyzzy help, orangestar.dev](https://orangestar.dev/xyzzy/)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026; Oct 25, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Programming languages

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/xyzzy-computing

English original: https://www.edgepedia.org/xyzzy-computing
