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 · 1067 阅读 · 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 · 509 阅读 · 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 · 4267 阅读 · 0 评论
分享