Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如我有这个字符串:hello:there:world
hello:there:world
如何将这三个单词拆分为字符串数组,我的意思是最终结果将是这样的:
arr[0] = "hello"; arr[1] = "there"; arr[2] = "world";
提前致谢。