访客统计
2016-02-03 15:17
302 查看
using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Text.RegularExpressions; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { StreamReader sr = new StreamReader(@"uv.txt", Encoding.Default); String line; List<String> lss = new List<String>(); while ((line = sr.ReadLine()) != null) { string cl = new Regex(@"(?<=\s)\d+").Match(line).ToString(); if (!lss.Contains(cl)) { lss.Add(cl); } } Console.WriteLine(lss.Count); Console.Read(); } } }
uv文件:http://files.cnblogs.com/files/tqlin/uv.zip
相关文章推荐
- linux常用基本命令
- 设置mysql远程连接root权限
- NLP系列(2)_用朴素贝叶斯进行文本分类(上)
- iOS中文版资源库
- bootstrap table 整合dwr框架
- AlarmManager使用
- ab压力测试工具-批量压测脚本
- bat批处理删除指定N天前的文件
- php常用mysql操作函数
- binlog,redo log,undo log区别
- 关于struts2.3.24.1所必须的jar包
- SQL如何Count Distinct过的数据
- webdriver 关于元素的常用操作 python版本
- windbg的x命令
- 搭建Pxe服务器无人听应答全自动安装CentOS6.7系统 推荐
- OK6410-A开发板学习-⑤uboot移植(3)DM9000 网卡驱动移植
- Bootstrap快速上手(一)----右键菜单
- uva11389
- MyEcplise中关于部署文件不成功的问题
- Android Edittext监听