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.
我搜索但没有解释如何执行此操作,例如
Dim sentence as String = "cat is an animal"
如果我制作一个 msgbox:
MsgBox(sentence)
表明
cat is an animal
如何制作一个上面写着的 msgbox
cat is an animal.
简单的方法用新行替换空间
如字符串中的单词 =MyString.Replace(" ","\r\n")
MyString.Replace(" ","\r\n")
拆分将在空间上拆分为一个数组,然后用新行将其连接起来,这是毫无意义的,除非您需要该数组来做其他事情。