双引号和花括号用来将单词组合到一起,形成一个参数。双引号和花括号的差别在于双引号允许组内替代,而花括号不允许。该规则适用于命令替代,变量替代和反斜杠替代。 (System32) 1 % set s hello hello (System32) 2 % puts "The length of $s is " The length of hello is 5 (System32) 3 % puts {The length of $s i ...
grid set halfpi 1.570796 set piover6 0.5235987 set twopi 6.283185 wm resizable . 0 0 .c create oval 50 50 550 550 -fill white -outline black -width 3 for { set h 1 } { $h = 12 } { incr h } { set angle set x set ...