如何选择拆分后使用哪个字符串? [英] How can I choose which string to use after split?
本文介绍了如何选择拆分后使用哪个字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在分割后选择使用哪个字符串?
如果我有一个字符串1,天空是蓝色的,T ;,我将字符串拆分(, c),如何选择哪个字符串,例如,将天空为蓝色打印为输出?
谢谢!
How can I choose which string to use after split?
Like If I have a string "1,The sky is blue,T;, and I split the string with split(","c), how can I choose which string, for example, to have just "The sky is blue" print as output?
Thanks!
推荐答案
这篇关于如何选择拆分后使用哪个字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文