摘要: 内容回顾:-list:-append():用于在列表末尾添加新的对象 aList = [123, 'xyz', 'zara', 'abc'] aList.append(2009) print(aList) -count():用于统计某个元素在列表中出现的次数 aList = [123, 'xyz', 'zara', 'abc', 123] aList.count(123) print(aLi... 阅读全文
posted @ 2017-08-24 20:35 程先生_Python 阅读(165) 评论(0) 推荐(0)