我说:“香蕉”。我希望它分成:
B
a
n
a
n
a
但是怎么样?如果我不写分隔符,它会给我错误,但是当我写“”分隔符时,没有任何有用的结果
答案 0 :(得分:0)
尝试,
Dim test = "Banana"
Dim ar = (From ch In test Select ch).ToArray()
For Each ch As Char In ar
Console.WriteLine(ch)
Next
OR
Dim ar=test.AsEnumerable().ToArray()