📜  从变量 python 代码示例中获取长度

📅  最后修改于: 2022-03-11 14:46:25.942000             🧑  作者: Mango

代码示例1
len(var)
len() is a built-in function in python. You can use the len() to get the length of the given string, array, list, tuple, dictionary, etc. Value: the given value you want the length of. Return value a return an integer value i.e. the length of the given string, or array, or list, or collections.