摘要: 说明:一个工具Regulator需要用到 一:正则表达式 1 what & why 1.1 啥是正则? 匹配字符串的规则。 1.2 为什么要用正则? 可以通过正则用来判断、寻找相应的字符串。例如:表单验证,判断是不是手机号、爬虫,从网页中爬取相应信息。 2 基本语法 1 元字符 . 匹配任意单个字符 阅读全文
posted @ 2017-04-16 21:11 逍遥小天狼 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 以前使用的File是操作小的文本文件,用的并不常见,FileStream(操作字节),可以操作所有格式的文件,用途较广泛 下面做一个通过文件流给文件加密解密的小软件. using System; using System.Collections.Generic; using System.Compo 阅读全文
posted @ 2017-04-16 19:12 逍遥小天狼 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 说明:涉及到知识点:TreeView控件,递归调用, 1 先把架子搭起来 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Draw 阅读全文
posted @ 2017-04-16 16:32 逍遥小天狼 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 上一篇简单介绍了File文本文件的操作,这次简单介绍Directory的操作 Directory主要用于操作文件夹 常用方法 CreateDirectory;创建一个新的文件夹 Delete;删除文件夹 Move; 剪切文件夹 Exist;判断指定文件夹是否存在 具体应用 if(!Directory 阅读全文
posted @ 2017-04-16 14:35 逍遥小天狼 阅读(295) 评论(4) 推荐(0) 编辑
摘要: 1 对文件的操作-File类 常用的操作: File.Exis();判断文件是否存在 File.Create ();创建 File.Move();剪切 File.Copy();复制 File.Delete();删除 using System; using System.Collections.Gen 阅读全文
posted @ 2017-04-16 11:35 逍遥小天狼 阅读(200) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 日期的转换 { //2012-12-21 //2 阅读全文
posted @ 2017-04-16 10:41 逍遥小天狼 阅读(128) 评论(0) 推荐(0) 编辑