“你好,我的,你好” 求助哪个函数可以字符串去重。
设定字符串是一个集合 str()
dim ss() as string = "
你好,我的,你好".split(",")
dim lst as new list(of string)
for i as integer = 0 to ss.length - 1
if lst.contains(ss(i)) = false then lst.add(ss(i))
next
msgbox(string.join(",",lst.toarray))
Dim 字符串 As String = "你好,我的,你好"
Output.Show (String.join(vbcrlf, 字符串.Split (",").distinct))