小编mhh*_*hai的帖子

tcl中dict语法中的{*}是什么意思

在tcl中,有一些我不熟悉的代码习惯用法,dict creat中的{*}是什么意思?

namespace eval ::resistorColor {
    variable colors [dict create {*}{
        black   0
        brown   1
        red     2
        orange  3
        yellow  4
        green   5
        blue    6
        violet  7
        grey    8
        white   9
    }]
}
Run Code Online (Sandbox Code Playgroud)

dictionary tcl

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

标签 统计

dictionary ×1

tcl ×1