>>> 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...>>> df.extend(lx);
>>> df
[1, 2, 6, 8]
>>> lx
[6, 8]
在extend()操作中,被以字符为单位拆开(变成了列表),然后最加到列表中了。...L.count(value) -> integer -- return number of occurrences of value
>>> num=[1,6,3,8,5,6,2,1,3,5,1,1,2...];
>>> num.count(1);
4
>>> num.count(2);
2
>>> num.count(10);
0
我的python好像见鬼了,在ubuntun中,是python3.5;
>