tclsh 中怎么分割字符串

set str "apple,banana,cherry"
set list [split $str ","]
puts $list

 

posted @ 2025-09-04 19:04  HSLKa  阅读(4)  评论(0)    收藏  举报