Loading

摘要: * 函数接收参数为元组 例如 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 阅读(6015) 评论(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 阅读(193) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2016-08-11 13:43 3WLineCode 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 123 阅读全文
posted @ 2016-08-11 10:20 3WLineCode 阅读(210) 评论(0) 推荐(0) 编辑
摘要: private void SqlBulkCopyByDataTable(string connectionString,string TableName,DataTable dt) { using (SqlConnection sqlconn = new SqlConnection("connectionstring")) { ... 阅读全文
posted @ 2016-08-01 15:02 3WLineCode 阅读(387) 评论(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 阅读(151) 评论(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 阅读(425) 评论(0) 推荐(0) 编辑
摘要: //获取到textbox1 的top值 Response.Write(textbox1.Style["top"]); //设置textbox1的style textbox1.Style["Style"] = "left: 500px; position: absolute;top:400px"; 阅读全文
posted @ 2016-07-29 10:25 3WLineCode 阅读(1634) 评论(0) 推荐(0) 编辑
摘要: protected void ddlCode_SelectedIndexChanged(object sender, EventArgs e) { DropDownList ddlCode = (DropDownList)sender; //根据现有的控件的NamingContainer获取到该控件所在的父级GridView的所在行 GridViewRow gvr... 阅读全文
posted @ 2016-07-26 10:37 3WLineCode 阅读(937) 评论(0) 推荐(0) 编辑
摘要: ?:表达式1?表达式2:表达式3如果1为真则执行2,为假执行3 阅读全文
posted @ 2016-07-08 10:26 3WLineCode 阅读(315) 评论(0) 推荐(0) 编辑