gpt4 book ai didi

C# 从变量中删除空格

转载 作者:太空宇宙 更新时间:2023-11-03 17:07:10 25 4
gpt4 key购买 nike

<分区>

我的变量看起来像:

name = "Lola                                 "; // notice the whitespace

如何删除末尾的空格,只留下“Lola”?


谢谢大家,但是 .Trim() 对我不起作用。

我从文件中读取文本,如果有帮助的话。

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