怎么得到数组的元素个数--在线等,完了结贴我的String str= "1,2,3,22 " s=split( ", " str); 怎么得到里有几个元数? 还有Str里的字符串长度是不定的 有可能是| "1,2 ",等等[解决办法]s.Length;[解决办法]string str= "1,2,3,22 "; string[] s= str.Split( ", "); int xxx = s.Length;