
好词典

源自中古英语 'nest'(巢)+ 后缀 '-ed',最初指鸟类筑巢的行为,后引申为各种包含关系。
❶ 指一个物体或结构被完全包含在另一个物体或结构中,形成层级关系。常用于描述计算机数据结构或物理空间的包含关系。
“The nested boxes fit perfectly inside each other.”
(这些嵌套的盒子可以完美地一个套一个。)
“The program uses nested loops to process the data.”
(这个程序使用嵌套循环来处理数据。)
❶ 将某物放置在另一物体内部,使其形成包含关系。也可指鸟类筑巢的行为。
“The programmer nested the conditional statements.”
(程序员将条件语句进行了嵌套。)
“Robins nested in the eaves of our house last spring.”
(去年春天知更鸟在我们屋檐下筑巢。)
nested structure — 指具有多层包含关系的组织结构,在计算机科学和建筑设计中常见。
“The XML file has a complex nested structure.”
(这个XML文件具有复杂的嵌套结构。)
nested loop — 编程术语,指一个循环结构完全包含在另一个循环结构中。
“The nested loop iterates through rows and columns of the matrix.”
(嵌套循环遍历矩阵的行和列。)