摘要: 方法一: >>> mylist = [1,2,2,2,2,3,3,3,4,4,4,4] >>> myset = set(mylist) >>> for item in myset: print("the %d has found %d" %(item,mylist.count(item))) the 阅读全文
posted @ 2016-11-21 04:46 范恒 阅读(44329) 评论(0) 推荐(1) 编辑