- 7
- 0
- 约1.43万字
- 约 22页
- 2017-06-05 发布于河南
- 举报
Tcl语言讲义稿(国外英文资料)
Tcl语言讲义稿
Tcl language notes
Introduction of Tcl/Tk
Tcl/Tk pronunciation: tickle tee - kay Ousterhout of the university of California, Berkeley, 1988
Tcl/Tk = Tcl + Tk = Tool command language Tk = tookit to create a graphical user interface toolkit
Using Tk to develop graphical interfaces (such as buttons, dialogs), you can use Tcl to complete programming functions, such as handling user input.
The characteristics,
Extensibility and glue together, there are a number of toolkits to extend its functionality. Script everywhere run everywhere is similar to Java.
Second, the grammar
1. The format
Command format: command arg1 arg2 arg3...
Tcl/Tk commands are separated by line or semicolon:
Set a 45
The Set of 55 b
Or: set a 45; The set of 55 b
In the same command, there is a gap or Tab between words:
2. Comment
The first non-blank character in each line, if it is #, then the content will be ignored as an annotation, such as:
# This is a comment.
Set a 45
But there is one thing that needs special attention:
# This is a comment
Set a 45 # This is NOT a comment
The second line after the # will not be regarded as the content of the notes, if you want to use this method and must be at the end of the command of the mentioned before the end of the command line by a new end with semicolons, therefore this line to change to:
Set a, 45. # This is a comment
3. Replace
The argument variable replaces variable substitution
The $ symbol in front of the variable name indicates that when using this variable, the variable name is replaced by a variable value, for example:
The set of PI (3.14159)
Expr $PI * 25 * 25
The first line in a given called a PI variable initial value, the second line to use this variable, in order to variable names can be replaced with the value of a variable, so combined with $ sign in front of the variable. The initial value of a given variable is not a $ sign, and the $ symbol is used to denote the value of the variable.
Varisble substitution has another form, for
您可能关注的文档
最近下载
- 桥面系人行道施工方案.docx VIP
- 深川CHINSC S200系列通用矢量变频器说明书.pdf VIP
- (高清版)B-T 230.2-2022 金属材料 洛氏硬度试验 第2部分:硬度计及压头的检验与校准.pdf VIP
- 2024部编版初中历史八年纪上全册重点知识点归纳总结(复习必背).docx VIP
- 2025年招标师信息化与系统集成项目招标方案设计专题试卷及解析.pdf VIP
- 美妆直播间布置方案.docx VIP
- 2025年课件-(已瘦身)大学生创新创业基础(创新创业课程)PPT完整全套教学课件-新版.pptx
- 辽宁省建设工程系列专业技术资格评审标准.pdf VIP
- 2025年10月自考14444小学教师专业发展.试题及答案.pdf VIP
- 七下历史教学计划.docx VIP
原创力文档

文档评论(0)