C#
小章鱼丸子
新浪微博:
www.weibo.com/xihushui
展开
-
Oracle有关树的查询
1,查询所有节点select * from busi_jgrs start with id = '1' connect by prior id = pid;start with id = '1'意思是以id为1开始。2,查询末节点 select * from busi_jgrs where id in (select id from (select id, CONNE原创 2017-03-13 17:12:21 · 226 阅读 · 0 评论 -
c#后台移除某个元素方法总结
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 测试控制台{ public class 移除元素 { public void c() {原创 2017-08-26 14:33:44 · 1641 阅读 · 0 评论 -
c#爬虫三类
-----------------提取网页内容----------------1】> WebClient wc = new WebClient(); wc.Encoding = Encoding.UTF8; string str = wc.DownloadString("http://tieba.baidu.com/p/2314539885");//下载页面中所有的字符串原创 2017-09-08 12:27:18 · 237 阅读 · 0 评论 -
c#总结4
1,Convert.ToInt32(null)会返回0而不会产生任何异常,但int.Parse(null)则会产生异常。(int)3.3=3 写法简单对于double类型适合。int.Parse("3.3")Convert.ToInt32(null)返回0总结:(1)Convert.ToInt32的参数比较多,Int.Parse只能转换string类型的.(2)Parse就是把Str原创 2017-09-08 12:34:33 · 439 阅读 · 0 评论 -
C#正则表达式Regex类的使用
using System.Text.RegularExpressions;namespace 测试控制台{ class Program { static void Main(string[] args) { string str = "666"; string str3 = "101,102,103原创 2017-08-06 18:28:07 · 261 阅读 · 0 评论 -
C# List<>集合基础操作
using System;using System.Collections.Generic;using System.Text.RegularExpressions;using System.Linq;namespace 测试控制台{ class Program { static void Main(string[] args) {原创 2017-08-11 10:49:38 · 1483 阅读 · 0 评论 -
List<>复合集合操作
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 测试控制台{ public class 复合集合 { public static void c()原创 2017-10-30 14:33:42 · 889 阅读 · 0 评论