摘要:
* 函数接收参数为元组 例如 def myfun(*args): #相当于 def myfun(1,2,3) ==> args 就相当于(1,2,3) for a in args: print(a) ** 表示函数接收参数为一个字典 def myfun(**args) :#相当于 def myfun 阅读全文
摘要:
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 阅读全文
摘要:
private void SqlBulkCopyByDataTable(string connectionString,string TableName,DataTable dt) { using (SqlConnection sqlconn = new SqlConnection("connectionstring")) { ... 阅读全文
摘要:
private string RunningTime() { Stopwatch sw = new Stopwatch(); sw.Start(); for (int i = 0; i < 1000;i++ ) { Thread.Sleep(10); } return sw.Elapsed.ToSt 阅读全文
摘要:
private void Form1_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); dt.Columns.Add("key", System.Type.GetType("System.Int32")); dt.Column... 阅读全文
摘要:
//获取到textbox1 的top值 Response.Write(textbox1.Style["top"]); //设置textbox1的style textbox1.Style["Style"] = "left: 500px; position: absolute;top:400px"; 阅读全文
摘要:
protected void ddlCode_SelectedIndexChanged(object sender, EventArgs e) { DropDownList ddlCode = (DropDownList)sender; //根据现有的控件的NamingContainer获取到该控件所在的父级GridView的所在行 GridViewRow gvr... 阅读全文