Foxtable(狐表)用户栏目专家坐堂 → [求助]字符串数组


  共有1890人关注过本帖平板打印复制链接

主题:[求助]字符串数组

帅哥哟,离线,有人找我吗?
天一生水
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:五尾狐 帖子:1140 积分:11255 威望:0 精华:0 注册:2017/9/26 16:30:00
[求助]字符串数组  发帖心情 Post By:2018/9/3 22:24:00 [只看该作者]

想替换字符串中的句号,末尾的句号除外,请蓝老师帮忙改一下,谢谢!
代码结果为"你好,你好,你好。"

'''
Dim str As String = "你好,你好。你好。"
.......

Dim lst As new List(Of String)
If lst.Count >= 1 Then
    For i As Count = 0 To lst.Count-1
        If i <> lst.Count -1 Then
            lst(i).Replace("。",",")
        End If
    Next
End If
Output.Show(lst)


 回到顶部