原创 Start Windows Process / DOS Command

1. Start Windows Process / DOS command  public static Process SystemExecuteBG(String command, bool output = true)

原创 很無聊 但實用的小例子:C#獲取類的成員變量名及對其賦值

public class Program { public string str = "spp"; public string spp = "Hello World!"; publ

原创 python 讀取指定目錄下的所有文件包括子目錄下的

import os def file_name(file_dir): for root, dirs, files in os.walk(file_dir): # print('root_dir:', root)

原创 HTTP POST GET 本質區別詳解

 http://blog.csdn.net/gideal_wang/article/details/4316691 一 原理區別     一般在瀏覽器中輸入網址訪問資源都是通過GET方式;在FORM提交中,可以通過Method指定

原创 SQL 按時間統計語句

 測試表: consume_record 字段1:consume (money類型) 字段2:date (datetime類型)   寫sql語句分別按日,星期,月,季度,年統計銷售額 --按日 select sum(cons

原创 SQL 統計語句

 http://www.jbxue.com/db/2292.html --> 測試數據:[tb]if object_id('[tb]') is not null drop table [tb]go create table [tb]

原创 source文件和makefile文件編寫

 http://blog.csdn.net/kaylc/article/details/6263296 一. makefile (沒有擴展名,它名字就叫makefile),內容如下:   !INCLUDE $(NTMAKEENV)

原创 JS How to get the div that sends the event

There is a method :  event.srcElement  it can return the element that

原创 SQL:char、varchar、text和nchar、nvarchar、ntext的區別

 http://www.cnblogs.com/TomToDo/archive/2008/05/27/1208496.html SQL中char、varchar、text和nchar、nvarchar、ntext的區別      1