有一批数字都是六位或者十二位的(位数是6的倍数) 若a=000000000001 怎么用startwith获得000000啊
string a = "000000000001"; string head; a.StartsWith("000000"); if (a.StartsWith("000000")) { head = a.Substring(0, 6); }