
string
词源
源自古英语 'streng',意为线或绳,与古高地德语 'strang' 和古诺尔斯语 'strengr' 同源。
noun
❶ 指细长的线或绳,通常由纤维、金属丝等材料制成,用于捆绑、悬挂或连接物品。
“She tied the package with a piece of string.”
(她用一根绳子把包裹绑了起来。)
“The puppet was controlled by strings.”
(木偶由绳子控制。)
❶ 在计算机科学中,指由字符组成的序列,通常用于表示文本或数据。
“The program stores the user's name as a string.”
(程序将用户名存储为字符串。)
“You need to convert the number to a string before printing.”
(在打印之前,你需要将数字转换为字符串。)
verb
❶ 用线或绳将物品串起来或悬挂起来,也指将物品按顺序排列。
“She strung the beads to make a necklace.”
(她把珠子串起来做成了一条项链。)
“They strung lights across the backyard.”
(他们在后院挂了一排灯。)
常见短语
string along — 指欺骗某人或让某人抱有虚假的希望,通常用于描述拖延或误导的行为。
“He strung her along with promises of marriage.”
(他用结婚的承诺一直欺骗她。)
string of pearls — 指一串珍珠,也用来形容一系列相似或连续的事物。
“She wore a beautiful string of pearls to the party.”
(她戴了一串漂亮的珍珠项链去参加派对。)