【发布时间】:2021-12-26 18:09:29
【问题描述】:
我是 TCL 字典的新手。我有一本字典,我已经使用变量来表示字典中的值。例如
set first "Varun"
set last "Kumar"
set name [dict create "ID_1" {prename "$first" surname "$last"}]
set nm [dict get $name ID_1]
puts $nm
输出为“prename $first surname $last”。
你能帮我解决这个问题吗
【问题讨论】:
标签: dictionary tcl