![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tcl/tk
gongchenwei
这个作者很懒,什么都没留下…
展开
-
tcl/tk学习笔记(1)
<br /> <br />Spaces are not required around the square brackets used for command substitution. For the purposes of grouping, the interpreter considers everything between the square brackets as part of the current group. The following sets x to the concaten原创 2010-12-02 15:01:00 · 975 阅读 · 0 评论 -
set command will return the value of the argument( variable, actually )
<br />eg:<br /> <br />set var {the value of var}<br />=> the value of var<br />set name var<br />=> var<br />set name<br />=> var<br />set $name ## here, the name will be replaced by "var", so <=> set $var => the below result<br />=> the原创 2010-12-02 14:42:00 · 455 阅读 · 0 评论 -
Tcl 运算符和数学函数
<br /> <br />Tcl 运算符和数学函数~/tcltk$ cat maths.tcl<br />#!/usr/bin/tclsh<br />#<br /># Demonstrate operators and<br /># math functions<br /><br />set PI [expr 2 * asin(1.0)]<br /><br />if {$argc == 3} {<br /> set X [lindex $argv 0]<br /> set转载 2011-05-18 11:51:00 · 3640 阅读 · 0 评论