【文件属性】:
文件名称:老套(续)-tcl脚本入门
文件大小:168KB
文件格式:PPT
更新时间:2021-04-25 00:10:23
tcl 脚本 入门
老套(续)
Tcl脚本程序的结构
1、在第一行指定解释器
#!/aitools/bin/tclsh
或如下写法
#!/bin/sh
# the next line restarts using tclsh\
exec tclsh "$0" "$@ "
2、注释的标记为#
如:
# This is a comment sentence
3、句与句(包括注释句)之间以“换行”或“;”分隔
如:
# Following a sentence
puts “line 1”
puts “line 2” ; # Another comment