【发布时间】:2022-08-22 00:59:35
【问题描述】:
我试图将一个单词分成一个统一的所有字母的数组,例如input: hellooutput: h e l l o
有人帮助我吗?
谢谢。
-
\"hello\".ToArray() -
在内部,
string是char的集合,所以任何集合拆分方法都会得到你想要的。str.ToList()或str..Select(x => x)等 -
这回答了你的问题了吗? C# - How to convert string to char?
标签: c#