我有一个关于字符串连接的简单问题。以下是代码。我想问为什么 s6 = "abcde" 而不是 "akcde"?我已将 s2 值更改为“k”。
Public Class Form1
Public s1 As String = "a"
Public s2 As String = "b"
Public s3 As String = "c"
Public s4 As String = "d"
Public s5 As String = "e"
Public s6 As String = ""
Public s7 As String = "k"
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
s6 = s1 & s2 & s3 & s4 & s5
s2 = s7
MessageBox.Show(s6) 's6 = abcde
End Sub
End Class