亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? reftcl.tex

?? 很不錯的tcl編程實例
?? TEX
?? 第 1 頁 / 共 2 頁
字號:
\section{Basic Tcl Language Features} 

\begin{enum}{3cm}

\Xi{|;| or {\it newline}} statement separator

\Xi{$\backslash$} statement continuation if last character in line 

\Xi{|\#|} comments out rest of line (if first non$-$whitespace character)

\Xi{|var|} simple variable

\Xi{|var(index)|} associative array variable

\Xi{|var(i,j)|} multi-dimensional array variable

\Xi{|\$var|} variable substitution

\Xi{|\$\{var\}xyz|} variable substitution

\Xi{|[expr 1+2]|} command substitution

\Xi{$\backslash${\it char}} backslash substitution (see below)

\Xi{|"hello \$a"|} quoting with substitution

\Xi{|\{hello \$a\}|} quoting with no substitution (deferred substitution)

\end{enum}

\vskip10pt
The only data type in Tcl is a string. However, some commands will interpret
arguments as numbers in which case the formats are
\\
\quad Integer: |  123 0xff| (hex)|  0377| (octal).
\\
\quad Floating Point: |   2.1   3.   6e4    7.91e+16|

\section{Tcl Special Variables}

\begin{enum}{1cm}

\Xi{|env|} Tcl array where each element name is an enviroment variable.

\Xi{|errorCode|} Error code information from the last Tcl error.

\Xi{|errorInfo|} Describes the stack trace of the last Tcl error.

\Xi{|tcl\_precision|} Number of significant digits to retain when
converting floating-point numbers to strings (default 6).

\end{enum}

\section{Backslash Substitutions}

\begin{tabbing}
|   |\=|                  |\=|        |\= \kill
$\backslash$|a| \> audible alert (0x7)	\> $\backslash${\it space}	\> space \\
$\backslash$|b| \> backspace (0x8)	\> $\backslash${\it newline}	\> space \\
$\backslash$|f| \> form feed (0xC)	\> $\backslash${\it ddd}	\> octal value ({\it d}=0-7) \\
$\backslash$|n| \> newline (0xA)	\> $\backslash$x{\it dd}	\> hexadecimal value ({\it d}=0-9, a-f) \\
$\backslash$|r| \> carriage return (0xD)\> $\backslash${\it c}		\> replace `$\backslash${\it c}' with `{\it c}' \\
$\backslash$|t| \> horizontal tab (0x9) \> $\backslash$$\backslash$	\> a backslash \\
$\backslash$|v| \> vertical tab (0xB)	\>
\end{tabbing}

\section{Operators and Math Functions}

The \kwd{expr} command recognizes the following operators, in
decreasing order of precedence:

\begin{tabbing}
|   |\=|                    |\= \kill
 \> |-  ~  !| \> unary minus, bitwise NOT, logical NOT \\
 \> |*  /  %| \> multiply, divide, remainder \\
 \> |+  -|    \> add, subtract \\
 \> |<<  >>|  \> bitwise shift left, bitwise shift right \\
 \> |<  >  <=  >=| \> boolean comparisons \\
 \> |==  !=|  \> boolean equals, not equals \\
 \> \&        \> bitwise AND \\
 \> ${}^\wedge$ \> bitwise exclusive OR \\
 \> \|        \> bitwise inclusive OR \\
 \> \&\&      \> logical AND \\
 \> \|\|      \> logical OR \\
 \> |x ? y : z| \> if |x != 0|, then |y|, else |z|
\end{tabbing}

All operators support integers. All support floating point except |~|,
\%, \lt\lt, \gt\gt, \&, ${}^\wedge$, and \|. Boolean operators can 
also be used for string operands, in which case string comparison will
be used. This will occur if any of the operands are not valid
numbers. The \&\&, \|\|, and |?:| operators have ``lazy evaluation'',
as in C.

\vskip5pt
The \kwd{expr} command recognizes the following math functions:

\begin{enum}{2cm}

\Xi{|abs|} absolute value
\Xi{|acos|} arc cosine
\Xi{|asin|} arc sine
\Xi{|atan|} arc tangent
\Xi{|atan2|} arc tangent of $x/y$
\Xi{|ceil|} round up to nearest integer
\Xi{|cos|} cosine
\Xi{|cosh|} hyperbolic cosine
\Xi{|double|} convert to floating point
\Xi{|exp|} $e^x$
\Xi{|floor|} round down to nearest integer
\Xi{|fmod|} floating point remainder of $x/y$
\Xi{|hypot|} $\sqrt{x^2+y^2}$
\Xi{|int|} convert to integer by truncation
\Xi{|log|} natural logarithm
\Xi{|log10|} base 10 logarithm
\Xi{|pow|} $x^y$
\Xi{|round|} convert to integer by rounding
\Xi{|sin|} sine
\Xi{|sinh|} hyperbolic sine
\Xi{|sqrt|} square root
\Xi{|tan|} tangent
\Xi{|tanh|} hyperbolic tangent

\end{enum}

\section{Regular Expressions}

\begin{enum}{3.5cm}
\Xi{<regex>\|<regex>} match either expression
\Xi{<regex>*} match zero or more of <regex> 
\Xi{<regex>+} match one or more of <regex> 
\Xi{<regex>?} match zero or one of <regex> 
\Xi{|.|} any single character except newline 
\Xi{${}^\wedge$} match beginning of string 
\Xi{\$} match end of string 
\Xi{$\backslash$<c>} match character <c> 
\Xi{<c>} match character <c> 
\Xi{[abc]} match set of characters 
\Xi{[${}^\wedge$abc]} match characters not in set 
\Xi{[a-z]} match range of characters 
\Xi{[${}^\wedge$a-z]} match characters not in range 
\Xi{(\quad)} group expressions 
\end{enum}

\section{Pattern Globbing}

\begin{enum}{3.5cm}
\Xi{?} match any single character 
\Xi{*} match zero or more characters 
\Xi{[abc]} match set of characters 
\Xi{[a-z]} match range of characters 
\Xi{$\backslash$<c>} match character <c> 
\Xi{$\{$a,b,...$\}$} match any of strings a, b, etc. 
\Xi{\~{}} home directory (for \kwd{glob} command)
\Xi{\~{}<user>} match <user>'s home directory (for \kwd{glob} command)
\end{enum}

{\bf Note:}  for the \kwd{glob} command, a ``.'' at the beginning of a
file's name or just after ``/'' must be matched explicitly and all
``/'' characters must be matched explicitly.

\section{Control Flow} 

\begin{enum}{1cm}

\Xi{\kwd{break}}
Abort innermost containing loop command.

\Xi{\kwd{case}}
Obsolete, see \kwd{switch}.

\Xi{\kwd{continue}}
Skip to the next iteration of innermost containing loop command.

\Xi{\kwd{exit} [ <returnCode> ] }
Terminate  the  process, returning <returnCode> (an integer which
defaults to 0) to the system as the exit  status.

\Xi{\kwd{for} <start> <test> <next> <body>}
Looping command where <start>, <next>, and <body> are
Tcl command strings and test is an expression string to be passed
to \kwd{expr} command.

\Xi{\kwd{foreach} <varname> <list> <body>} 
The Tcl command string <body> is evaluated for each item in
the string <list> where the variable <varname> is
set to the item's value.

\Xi{\kwd{if} <expr1> [ \kwd{then} ] <body1> [ \kwd{elseif} <expr2> [ \kwd{then} ] 
	<body2> ... ] [ [ \kwd{else} ] <bodyN> ] } 
If expression string <expr1> evaluates true, Tcl command string <body1> is
evaluated. Otherwise if <expr2> is true, <body2> is evaluated, and so on.
If none of the expressions evaluate to true then <bodyN> is executed.

\Xi{\kwd{return} [\kwd{-code} <code>] [\kwd{-errorinfo} <info>] [\kwd{-errorcode} <code>] [<string>]}
Return immediately from current procedure with <string> as return value.

\Xi{\kwd{switch} [<options>] <string> <pattern1> <body1> [ <pattern2> <body2> ...] }
The <string> argument is matched against each of the <pattern> arguments in order.
As soon as it finds a pattern that matches <string>, it evaluates the
corresponding Tcl command string <body>. If no match is found and the last pattern
is the keyword |default|, its command string is evaluated.
 

\Xi{\kwd{while} <test> <body>} 
Evalutes the Tcl command string <body> as long as expression string <test>
evaluates to true.

\end{enum}

\section{File Information}

\begin{enum}{1cm}

\Xi{\kwd{file atime} <fileName>}
Time <fileName> was last accessed as seconds since Jan. 1, 1970.

\Xi{\kwd{file dirname} <fileName>}
Returns all characters in <fileName> up to but not including last slash.

\Xi{\kwd{file executable} <fileName>}
Returns 1 if <fileName> is executable by user, 0 otherwise.

\Xi{\kwd{file exists} <fileName>}
Returns 1 if <fileName> exists (and user can read its directory), 0 otherwise.

\Xi{\kwd{file extension} <fileName>}
Returns all characters in <fileName> after and including the last dot.

\Xi{\kwd{file isdirectory} <fileName>}
Returns 1 if <fileName> is a directory, 0 otherwise.

\Xi{\kwd{file isfile} <fileName>}
Returns 1 if <fileName> is a regular file, 0 otherwise.

\Xi{\kwd{file lstat} <fileName> <varName>}
Same as \kwd{file stat} except uses the lstat kernel call.

\Xi{\kwd{file mtime} <fileName>}
Time <fileName> was last modified as seconds since Jan. 1, 1970.

\Xi{\kwd{file owned} <fileName>}
Returns 1 if <fileName> owned by the current user, 0 otherwise.

\Xi{\kwd{file readable} <fileName>}
Returns 1 if <fileName> is readable by current user, 0 otherwise.

\Xi{\kwd{file readlink} <fileName>}
Returns value of symbolic link given by <fileName>.

\Xi{\kwd{file rootname} <fileName>}
Returns all the characters in <fileName> up to but not including last dot.

\Xi{\kwd{file size} <fileName>}
Returns size of <fileName> in bytes.

\Xi{\kwd{file stat} <fileName> <varName>}
Place results of stat kernel call on <fileName> in variable <varName>
as an array with elements |atime|, |ctime|, |dev|, |gid|, |ino|,
|mode|, |mtime|, |nlink|, |size|, |type|, and |uid|.

\Xi{\kwd{file tail} <fileName>}
Return all characters in <fileName> after last slash.

\Xi{\kwd{file type} <fileName>}
Returns string giving type of <fileName>. Possible values are |file|,
|directory|, |characterSpecial|, |blockSpecial|, |fifo|, |link|, or |socket|.

\Xi{\kwd{file writable} <fileName>}
Returns 1 if <fileName> is writable by current user, 0 otherwise.

\end{enum}

\section{Tcl Interpreter Information}

\begin{enum}{1cm}

\Xi{\kwd{info args} <procName>}
Returns list describing in order the names of arguments to <procName>.

\Xi{\kwd{info body} <procName>}
Returns the body of procedure <procName>.

\Xi{\kwd{info cmdcount} }
Returns the total number of commands that have been invoked.

\Xi{\kwd{info commands} [<pattern>]}
Returns list of Tcl commands matching glob <pattern> (default |*|).

\Xi{\kwd{info complete} <command>}
Returns 1 if <command> is a complete Tcl command, 0
otherwise. Complete means having no unclosed quotes, braces, brackets
or array element names

\Xi{\kwd{info default} <procName> <arg> <varName>}
Returns 1 if procedure <procName> has a default for argument <arg> and
places the value in variable <varName>. Returns 0 if there is no default.

\Xi{\kwd{info exists} <varName>}
Returns 1 if the variable <varName> exists in the current context, 0 othewise.

\Xi{\kwd{info globals} [<pattern>]}
Returns list of global variables matching glob <pattern> (default |*|).

\Xi{\kwd{info level}}
Returns the stack level of the invoking procedure.

\Xi{\kwd{info level} <number>}
Returns name and arguments of procedure invoked at stack level <number>.

\Xi{\kwd{info library} }
Returns name of library directory where standard Tcl scripts are stored.

\Xi{\kwd{info locals} [<pattern>]}
Returns list of local variables matching glob <pattern> (default |*|).

\Xi{\kwd{info patchlevel} }
Returns current patch level for Tcl.

\Xi{\kwd{info procs} [<pattern>]}
Returns list of Tcl procedures matching glob <pattern> (default |*|).
Differs from \kwd{info commands} in that built-ins are excluded.

\Xi{\kwd{info script} }
Returns name of Tcl script currently being evaluated.

\Xi{\kwd{info tclversion} }
Returns version number of Tcl in <major>.<minor> form.

\Xi{\kwd{info vars} [<pattern>]}
Returns list of currently-visible variables matching glob <pattern> (default |*|).

\end{enum}

\section{File Input/Output}

\begin{enum}{1cm}

\Xi{\kwd{close} <fileId>}
Close the open file given by <fileId>.

\Xi{\kwd{eof} <fileId>}
Returns 1 if an end-of-file has occurred on <fileId>, 0 otherwise.

\Xi{\kwd{flush} <fileId>}
Flushes any output that has been buffered for <fileId>.

\Xi{\kwd{gets} <fileId> [<varName>]}
Read next line from file given by <fileId>, discarding newline character.
Places characters of line in <varName> if given, otherwise returns them.

\Xi{\kwd{open} <fileName> [<access>] [<perms>]}
Opens <filename> and returns its file id. If a new file is created,
its permission are set to the conjuction of <perms> and the process
umask.  The <access> may be

\begin{enum}{1cm}
\Xi{|r|} Read only. File must exist.
\Xi{|r+|} Read and write. File must exist.
\Xi{|w|} Write only. Truncate if exists.
\Xi{|w+|} Read and write. Truncate if exists.
\Xi{|a|} Write only. File must exist. Access position at end.
\Xi{|a+|} Read and write. Access position at end.
\end{enum}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品欧美久久久久久动漫| 欧洲亚洲国产日韩| 日本欧美久久久久免费播放网| www.亚洲色图.com| 国产一区不卡视频| 久久er99精品| 国产乱码一区二区三区| 国产精选一区二区三区| 国产成人免费高清| 不卡视频免费播放| 色狠狠综合天天综合综合| 欧美综合一区二区三区| 欧美精品色一区二区三区| 正在播放一区二区| 国产日韩v精品一区二区| 中文字幕中文在线不卡住| 自拍视频在线观看一区二区| 一二三四区精品视频| 天堂成人国产精品一区| 紧缚捆绑精品一区二区| 国产91丝袜在线18| 91福利视频在线| 日韩精品专区在线影院重磅| 日本一区二区三级电影在线观看| 成人免费在线视频观看| 日韩avvvv在线播放| 国产激情一区二区三区四区 | 久久亚洲一区二区三区四区| 国产精品乱码久久久久久| 亚洲综合在线视频| 激情综合一区二区三区| 99精品视频中文字幕| 日韩欧美中文字幕制服| 亚洲婷婷综合色高清在线| 日韩黄色在线观看| eeuss国产一区二区三区| 日韩网站在线看片你懂的| 国产精品久久免费看| 日本不卡在线视频| 一本久久精品一区二区| 欧美mv和日韩mv国产网站| 亚洲欧美日韩国产另类专区| 黄页视频在线91| 在线观看精品一区| 国产精品欧美极品| 黄色日韩网站视频| 91麻豆精品国产91| 一区二区三区四区不卡视频| 国产精品亚洲成人| 日韩小视频在线观看专区| ...xxx性欧美| 国产福利一区在线| 日韩欧美国产一区二区在线播放| 亚洲柠檬福利资源导航| 国产大陆精品国产| 精品美女一区二区| 奇米色一区二区| 欧美日高清视频| 亚洲三级久久久| 91蜜桃在线观看| 国产精品久久久久影视| 国产激情视频一区二区三区欧美| 欧美精品日韩精品| 亚瑟在线精品视频| 91久久精品一区二区二区| 中文字幕一区二区三区在线观看| 狠狠色狠狠色合久久伊人| 欧美成人一级视频| 久久国产精品第一页| 日韩视频国产视频| 青青草国产成人99久久| 欧美日韩免费电影| 五月婷婷久久丁香| 欧美夫妻性生活| 日韩在线一区二区| 欧美成人综合网站| 狠狠色丁香久久婷婷综| 久久久精品综合| 成人免费视频网站在线观看| 国产网站一区二区三区| 粉嫩嫩av羞羞动漫久久久| 欧美激情一区二区三区四区| 成人免费高清在线| 亚洲精品乱码久久久久久久久| 色综合久久88色综合天天6 | 激情综合亚洲精品| 欧美激情一区二区三区在线| 成人av资源站| 一区二区三区精品久久久| 欧美日韩亚洲丝袜制服| 另类的小说在线视频另类成人小视频在线| 678五月天丁香亚洲综合网| 精品一区二区三区的国产在线播放 | 国产午夜亚洲精品不卡| 91性感美女视频| 日一区二区三区| 久久婷婷国产综合国色天香| 成人一级视频在线观看| 亚洲线精品一区二区三区 | 久久女同性恋中文字幕| 成人开心网精品视频| 性做久久久久久免费观看欧美| 精品欧美黑人一区二区三区| 成人自拍视频在线观看| 亚洲福利视频一区| 国产欧美日韩在线看| 欧美在线看片a免费观看| 免费观看成人鲁鲁鲁鲁鲁视频| 国产欧美日韩在线| 91麻豆精品国产自产在线观看一区| 国产麻豆精品久久一二三| 亚洲国产欧美在线| 国产日韩av一区二区| 欧美性猛交一区二区三区精品| 精品一区二区三区视频在线观看 | 丰满放荡岳乱妇91ww| 亚洲国产精品精华液网站| 欧美r级电影在线观看| 色综合久久综合| 国内精品免费**视频| 亚洲va中文字幕| 日本一二三不卡| 日韩欧美黄色影院| 欧美在线高清视频| av激情综合网| 国产一区二区不卡老阿姨| 亚洲成人1区2区| 日韩毛片一二三区| 亚洲国产激情av| 日韩亚洲欧美综合| 成人一级黄色片| 国产白丝精品91爽爽久久| 婷婷开心激情综合| 亚洲精品国产精品乱码不99| 欧美激情一区二区三区全黄| 日韩精品一区二区三区在线观看 | 在线不卡的av| 欧美中文一区二区三区| 92国产精品观看| 成人丝袜18视频在线观看| 国产精品正在播放| 国模娜娜一区二区三区| 久久99精品久久久久久国产越南 | 午夜精品视频一区| 一区二区三区日韩欧美| 亚洲人吸女人奶水| 亚洲激情欧美激情| 亚洲色图在线看| 亚洲图片你懂的| 亚洲欧洲另类国产综合| 亚洲欧洲韩国日本视频| 成人欧美一区二区三区视频网页| 国产精品美女久久久久aⅴ | 日本一区二区电影| 欧美国产日韩在线观看| 国产精品美女久久久久久久久久久 | 欧美日韩一区三区| 欧美男人的天堂一二区| 欧美日韩亚洲国产综合| 91精品国产福利在线观看| 欧美一区二区三区人| 日韩精品一区二区三区四区 | 91影院在线免费观看| 成人97人人超碰人人99| 91亚洲午夜精品久久久久久| 91蝌蚪porny九色| 欧美在线免费播放| 日韩欧美专区在线| 国产欧美视频一区二区| 日韩美女精品在线| 日韩影院在线观看| 国产精品资源网| 色婷婷久久久久swag精品| 欧美日韩亚洲丝袜制服| 精品国偷自产国产一区| 亚洲国产成人在线| 尤物av一区二区| 六月丁香婷婷久久| va亚洲va日韩不卡在线观看| 在线亚洲免费视频| 精品欧美乱码久久久久久| 中文字幕亚洲区| 日韩精品电影一区亚洲| 国产麻豆精品theporn| 在线观看精品一区| 国产偷国产偷精品高清尤物| 亚洲蜜桃精久久久久久久| 久草精品在线观看| 91视频观看免费| 精品少妇一区二区三区日产乱码 | 国产91露脸合集magnet | 蜜桃视频在线观看一区二区| 国产麻豆午夜三级精品| 在线观看欧美黄色| 久久久激情视频| 日韩电影在线免费观看| av亚洲精华国产精华精华| 欧美xxxx在线观看| 亚洲国产欧美在线人成| 99re热这里只有精品视频|