如何拆分通用集合 [英] How to split the generic Collection
本文介绍了如何拆分通用集合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请帮我分一下
列表< string> item = new list< string>();
item.Add(sample45.00145.00);
item.Add(water45.00145.00);
我的输出应该是这样的:
样本(部分空间)45.00(部分空间)1(部分空间)45.00
water(部分空间)45.00(部分空间)1(部分空间)50.00
解决方案
item.Add( sample 45.00 145.00);
item.Add( water 45.00 145.00);
Hi,
Please help me how to split the
list<string> item=new list<string>();
item.Add("sample45.00145.00");
item.Add("water45.00145.00");
My output should be like this:
sample (some space) 45.00 (some space) 1 (some space) 45.00
water (some space) 45.00 (some space) 1 (some space) 50.00
解决方案
item.Add("sample 45.00 145.00"); item.Add("water 45.00 145.00");
这篇关于如何拆分通用集合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文