Tcl脚本学习笔记置换(Substitution)变量置换命令置换(Command Subsitution)反斜杠置换(backslash substitution)置换(Substitution)
变量置换
变量置换由一个美元符号$开始,变量置换会导致变量的值插入一个单词中。
ex1:
set a 1
set b $a1
# result:…
Preface / 前言
This tutorial is based on Tcl Tutorial. This tutorial was originally designed for the lab of the course ECE4810J. This tutorial only keeps the key notes and adds some additional instructions and explanations. The chapters are also re-organi…
TCL命令格式
tcl命令的格式为: 命令 参数
命令参数可以多个,一般为1到2个
参数可以是一个tcl命令格式,必须用[]来限定。[]里必须是一个有效的tcl命令脚本。例如:
set y [expr $x200] TCL数据结构
列表
定义一个列表
set …