我搜索但没有解释如何做到这一点, 例如
Dim sentence as String = "cat is an animal"
如果我制作一个msgbox:
MsgBox(sentence)
显示
cat is an animal
如何制作一个说明
的msgboxcat
is
an
animal.
答案 0 :(得分:0)
简单方法用新线替换空间
,如字符串中的单词= MyString.Replace(" ","\r\n")
拆分将在空间中拆分为一个数组,然后用新行连接备份,这是没有意义的,除非你需要其他的数组。