小编SY *_*HEN的帖子

如何在Tcl中清空列表?

您如何有效地在Tcl中清空列表?

我尝试使用lreplace清空列表,例如:

set lst "a b c d e"  
lreplace $lst 0 [[llength $lst] - 1]  # replace all content in the list with "".
Run Code Online (Sandbox Code Playgroud)

tcl

1
推荐指数
1
解决办法
7519
查看次数

标签 统计

tcl ×1