>>> st=[1,2,'dflx'];
>>> len(st);
3
>>> df=[6,8,"great"];
>>> st+df
[1, 2, 'dflx', 6, 8, 'great']
>>>...df*2;
[6, 8, 'great', 6, 8, 'great']
>>> 6 in df;
True
>>> 2 in df
False
>>> num=[1,2,99,-8];
>>> max...L.count(value) -> integer -- return number of occurrences of value
>>> num=[1,6,3,8,5,6,2,1,3,5,1,1,2...>>> ch.sort();
>>> ch;
['a', 'b', 'c']
列表和字符串二中类型的对象有许多相似之处,但是也有很大区别。...相同点二者都属于序列类型,不管组成列表的元素,还是组成字符串的元素都可以从左到右,依次建立索引访问。