len() 返回列表的长度,即元素个数。range()返回一个序列数。
例如:fruit = [‘apple’, ‘banana’ , ‘mango’]
len(fruit) = 3 range(len(fruit)) = [ 0, 1, 2 ]
python相关函数
猜你喜欢
转载自blog.csdn.net/u012418573/article/details/77131739
今日推荐
周排行