
wrappers
词源
源自中古英语 'wrapper',与动词 'wrap'(包裹)同源,最早可追溯至14世纪,表示包裹物品的人或物。
noun
❶ 指包裹物品的材料或外层覆盖物,通常用于保护、装饰或隐藏内部物品。常见于食品、礼品或日常用品的包装。
“She carefully removed the colorful wrappers from the candies.”
(她小心地剥开糖果上色彩缤纷的包装纸。)
“The chocolate bars were still in their original wrappers.”
(这些巧克力棒仍保留着原始包装纸。)
❶ 在编程中,指封装代码或功能的辅助结构,常用于简化复杂操作或提供统一接口。
“The developer created a Python wrapper for the C++ library.”
(开发者为这个C++库创建了Python封装接口。)
“This API wrapper makes it easier to access the database.”
(这个API封装让数据库访问变得更简单。)
常见短语
bubble wrappers — 指带有气泡的塑料包装材料,常用于保护易碎物品在运输过程中不受损坏。
“The fragile items were securely packed with bubble wrappers.”
(易碎物品被气泡包装材料安全地包裹着。)
wrapper functions — 编程术语,指对其他函数进行封装以提供额外功能或简化调用的辅助函数。
“The wrapper function adds logging capabilities to the original API calls.”
(这个封装函数为原始API调用添加了日志记录功能。)