gpt4 book ai didi

vb.net - 删除字符串中的所有空格

转载 作者:行者123 更新时间:2023-12-01 07:16:17 25 4
gpt4 key购买 nike

vb.net 中是否有任何函数可以删除字符串中的所有空格。
我的意思是像“这是什么”这样的字符串应该是“Whatisthis”

谢谢
富尔坎

最佳答案

使用 String.Replace()

Dim s As String = " What is this"
s = s.Replace(" ", "")

关于vb.net - 删除字符串中的所有空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4126934/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com