gpt4 book ai didi

string - 如何在TCL中去除字符串中的空格?

转载 作者:行者123 更新时间:2023-12-04 13:29:22 26 4
gpt4 key购买 nike

我需要从 TCL 中的字符串中去除前导和尾随空格。如何?

最佳答案

尝试这个 -

      string trim string ?chars?

Returns a value equal to string except that any leading or trailing characters from the set given by chars are removed. If chars is not specified then white space is removed (spaces, tabs, newlines, and carriage returns).


原始来源:- http://wiki.tcl.tk/10174

关于string - 如何在TCL中去除字符串中的空格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4657544/

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