- ·上一篇文章:VB.Net - 循环
- ·下一篇文章:VB.Net - 日期和时间
VB.Net - 字符串
它产生了以下结果: Last night I dreamt of San PedroSan Pedro. 加入字符串: Module strings Sub Main() Dim strarray As String() = {"Down the way where the nights are gay", "And the sun shines daily on the mountain top", "I took a trip on a sailing ship", "And when I reached Jamaica", "I made a stop"} Dim str As String = String.Join(vbCrLf, strarray) Console.WriteLine(str) Console.ReadLine() End SubEnd Module当上述代码被编译和执行时,它产生了以下结果: Down the way where the nights are gayAnd the sun shines daily on the mountain topI took a trip on a sailing shipAnd when I reached JamaicaI made a stop
VB.Net - 字符串