当前位置: 高中信息技术 / 单选题
  • 1. (2019高二下·嘉兴期末) 有如下VB程序段:

    Private Sub Command1_Click()

      Dim s As String, a As String, t As String

      s = Text1.Text: t = ""

      For i = 1 To Len(s)

        a = Mid(s, i, 1)

        If a >= "0" And a <= "9" Then

          t = t + a

        ElseIf a = "!" Then

          t = ""

        ElseIf t <> "" Then

          List1.AddItem t

        End If

      Next i

    End Sub

    在文本框Text1中输入“12+23=35!456Ye”,单击按钮“Command1”后,在列表框List1中显示的结果是(  )

    A . B . C . D .

微信扫码预览、分享更方便