我有这种格式的字符串:string test =“ 123_456_7890”; 我需要将此字符串转换为这样的字符串数组:
string [] arr={"123","456","7890"};
任何帮助将不胜感激。
谢谢Sabbu
string[] arr = test.Split('_');
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句