Python 抓取虾米歌曲名

# -*- coding:utf8 -*- import httplib def txt_wrap_by(start_str, end, html): start = html.find(start_str) if start >= 0: start += len(start_str) end = html.find(end, start) if end >= 0: return html[start:end].strip() def getones(sid): h...

阅读全文>>

C# Linq 统计ArrayList中相同元素出现的次数

System.Collections.ArrayList aList = new System.Collections.ArrayList(); aList.Add("b"); aList.Add("a"); aList.Add("o"); aList.Add("b"); aList.Add("a"); aList.Add("o"); aList.Add("s"); aList.Add("b"); string result=""; var vs = from char p in pre group p by p into g select new { g, num = g...

阅读全文>>