摘要: 一,正则表达式 1.常用正则表达式符号 二,Python re 模块 常用的模块属性 三,实例 1.match()方法, 从字符串开始匹配,匹配成功返回匹配对象,否则返回None >>> m = re.match('foo', 'foo') # 模式匹配字符串>>> if m is not None 阅读全文
posted @ 2018-10-25 22:05 Gavin_Zhang 阅读(185) 评论(0) 推荐(0)
摘要: C#委托类似C语言中的函数指针. 一, C# 委托的4个条件: 1.声明委托类型 delegate int IntProcess(int num); 2.必须有一个方法包含了要执行的代码 (返回值和形参列表个数&类型必须和声明的Delegate 完全一致) static int PrintIntNu 阅读全文
posted @ 2018-10-23 20:48 Gavin_Zhang 阅读(5098) 评论(0) 推荐(0)