python 中的list

num.index(x),查找的是x所在的位置,如:5在2的位置,num.remove(x)则是删除list中x的元素

所以对于字符是没有用的

对lsit的一些操作:

数字:

字符串:

 

posted @ 2014-10-21 13:55  尽子轨  阅读(149)  评论(0编辑  收藏  举报