Wrapper
Definition / 释义
wrapper(名词)
- 包裹物;包装纸/包装层:用来包住或保护物品的一层纸、塑料或外层。
- 外壳;外层:某物的外部覆盖层。
3)(计算机)封装层/包装器:在编程中指对函数、库或对象做一层“包裹”,以便更易使用或兼容。
(也可指“包装的人/包裹者”,但较少用。)
Pronunciation (IPA) / 发音
/ˈræpər/
Examples / 例句
She threw the candy wrapper into the trash.
她把糖果包装纸扔进了垃圾桶。
The software provides a wrapper around the old API so new code can call it safely.
该软件为旧的 API 提供了一层封装,使新代码可以安全地调用它。
Etymology / 词源
来自动词 wrap(包裹)+ 表示“做某事的人/物”的后缀 -er,字面意思是“用来包裹的东西”或“包裹的人/物”。
Related Words / 相关词
Literary Works / 文学作品
- 《Charlie and the Chocolate Factory》(Roald Dahl):常见于糖果/巧克力包装的语境(如 wrappers)。
- 《Harry Potter and the Philosopher’s Stone》(J. K. Rowling):在零食与日常物品描写中可能出现(如 wrappers)。