好词典

len

UK /len/US /len/

词源

缩写自英语单词 'length',在编程语言(如Python)中广泛使用。

noun

❶ 指长度或数量的缩写,常用于编程中表示某个对象的长度或元素数量。

“The len of the list is 5.”

(这个列表的长度是5。)

“Use len() to check the string length.”

(使用len()来检查字符串的长度。)

同义词:length, size, count

常见短语

len() — 在编程中常用的函数,用于获取序列(如列表、字符串等)的长度或元素数量。

“print(len('hello')) outputs 5.”

(print(len('hello')) 输出5。)