Loading

摘要: declare @i int ,@j int ,@s nvarchar(max) set @i = 1 while @i = @i begin set @s += cast(@i as char(1)) + '*' + cast(@j as char(1)) set @s += ' ' ... 阅读全文
posted @ 2016-11-23 15:03 3WLineCode 阅读(265) 评论(0) 推荐(0)
摘要: 菱形每一行都是由n个' ' + n 个'**' + 1个'*' 组成的 例如高度为9的菱形(共print 9次),*最多的一次print为第五次第五次就是0个' ' + 4个'**' + 1个'*' ,所以每一行都有 (高度+1)/2的输出对象(为*或者**、' '), 所以第一行就是4个 ' ' 阅读全文
posted @ 2016-11-23 14:26 3WLineCode 阅读(889) 评论(0) 推荐(0)
摘要: 1、 2、 阅读全文
posted @ 2016-09-12 10:59 3WLineCode 阅读(8322) 评论(0) 推荐(2)
摘要: * 函数接收参数为元组 例如 def myfun(*args): #相当于 def myfun(1,2,3) ==> args 就相当于(1,2,3) for a in args: print(a) ** 表示函数接收参数为一个字典 def myfun(**args) :#相当于 def myfun 阅读全文
posted @ 2016-09-07 10:19 3WLineCode 阅读(6054) 评论(0) 推荐(1)
摘要: 1. 删除”ban_friends_id”:”BAN121113″数据> db.test_ttlsa_com.remove({"ban_friends_id":"BAN121113"}) 2. 删除所有数据> db.test_ttlsa_com.count() 2 > db.test_ttlsa_c 阅读全文
posted @ 2016-08-25 15:20 3WLineCode 阅读(195) 评论(0) 推荐(0)
摘要: ... 阅读全文
posted @ 2016-08-11 13:43 3WLineCode 阅读(472) 评论(0) 推荐(0)
摘要: 123 阅读全文
posted @ 2016-08-11 10:20 3WLineCode 阅读(221) 评论(0) 推荐(0)
摘要: private void SqlBulkCopyByDataTable(string connectionString,string TableName,DataTable dt) { using (SqlConnection sqlconn = new SqlConnection("connectionstring")) { ... 阅读全文
posted @ 2016-08-01 15:02 3WLineCode 阅读(396) 评论(0) 推荐(0)
摘要: private string RunningTime() { Stopwatch sw = new Stopwatch(); sw.Start(); for (int i = 0; i < 1000;i++ ) { Thread.Sleep(10); } return sw.Elapsed.ToSt 阅读全文
posted @ 2016-08-01 14:04 3WLineCode 阅读(156) 评论(0) 推荐(0)
摘要: private void Form1_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); dt.Columns.Add("key", System.Type.GetType("System.Int32")); dt.Column... 阅读全文
posted @ 2016-07-29 13:11 3WLineCode 阅读(463) 评论(0) 推荐(0)