亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
精品国产乱码久久| 69p69国产精品| 国产美女精品在线| 日本欧美肥老太交大片| 香蕉成人伊视频在线观看| 亚洲男人都懂的| 一区二区三区免费网站| 亚洲美女在线国产| 一区二区欧美视频| 午夜精品免费在线| 免费观看日韩电影| 亚洲mv在线观看| 国产呦萝稀缺另类资源| 久久成人免费日本黄色| 久久国产福利国产秒拍| 久久电影网站中文字幕| 国产在线乱码一区二区三区| 国模少妇一区二区三区| 国产精品一区在线观看你懂的| 亚洲精品一二三| 亚洲一区二区五区| 久久超碰97人人做人人爱| 国产真实乱偷精品视频免| 国产suv精品一区二区6| 国产成人精品免费在线| 成人福利电影精品一区二区在线观看| 亚洲欧美日韩久久精品| 亚洲男人电影天堂| 免费观看成人av| 成人性生交大片免费看中文网站 | 国产精品一区专区| 97久久精品人人做人人爽| 欧美高清视频不卡网| 久久伊人中文字幕| 国产精品二三区| 奇米影视一区二区三区| 成人av免费在线播放| 欧美区在线观看| 国产精品动漫网站| 奇米四色…亚洲| 91丨国产丨九色丨pron| 欧美一区二区久久| 亚洲欧美综合在线精品| 石原莉奈一区二区三区在线观看| 亚洲精品久久久蜜桃| 免费成人在线视频观看| 色综合 综合色| 欧美美女一区二区三区| 中文无字幕一区二区三区| 国产精品系列在线播放| 欧美久久久久久久久| 色婷婷久久综合| 欧美亚洲国产一区二区三区 | 在线精品视频一区二区三四 | 国产精品一区一区| 亚洲第一成人在线| 欧美日韩国产精品成人| 视频在线在亚洲| 精品粉嫩超白一线天av| 国产又粗又猛又爽又黄91精品| 色网综合在线观看| 性做久久久久久免费观看欧美| 国精产品一区一区三区mba视频| 91啪亚洲精品| 亚洲一级二级在线| 精品av久久707| 91猫先生在线| 五月天激情小说综合| 久久精品在这里| 色8久久人人97超碰香蕉987| 日本特黄久久久高潮| 国产女主播视频一区二区| 欧美日韩中文字幕精品| 国产精品一级黄| 亚洲成av人片一区二区| 国产日韩欧美麻豆| 7777精品伊人久久久大香线蕉| 一区二区久久久| 精品伦理精品一区| 波多野结衣一区二区三区| 亚洲高清久久久| 国产午夜精品一区二区三区四区| 蜜桃视频免费观看一区| 国产免费久久精品| 国产性天天综合网| 日韩一区二区三免费高清| 91视频国产资源| 成人自拍视频在线| 黄页网站大全一区二区| 亚洲女同ⅹxx女同tv| 国产人久久人人人人爽| 欧美成人一区二区三区在线观看| 久久er99热精品一区二区| 亚洲一区二三区| 国产精品网曝门| 精品欧美一区二区在线观看| 欧美日韩一区三区| 91浏览器入口在线观看| 成人免费va视频| 国产精品一区在线观看乱码 | 国产一区二区三区在线看麻豆| 欧美一区二区大片| 成人h精品动漫一区二区三区| 国产免费久久精品| 精品99久久久久久| 日韩美女一区二区三区四区| 欧美日韩在线综合| 91久久久免费一区二区| 91亚洲午夜精品久久久久久| 成人综合婷婷国产精品久久蜜臀 | 国产精品蜜臀av| 久久久美女艺术照精彩视频福利播放| 日本vs亚洲vs韩国一区三区二区 | 欧美日韩小视频| 欧洲色大大久久| 一本色道久久综合亚洲精品按摩| 亚洲桃色在线一区| 亚洲欧洲日韩在线| 日本一区二区不卡视频| 精品播放一区二区| 久久久一区二区三区| 26uuu色噜噜精品一区| 精品少妇一区二区三区日产乱码| 国产精品原创巨作av| 国产一区二区三区蝌蚪| 激情综合色播激情啊| 国产一区二区三区综合| 高清在线不卡av| aaa欧美日韩| 欧美日韩一区小说| 欧美一区二区三区四区视频| 精品国精品国产尤物美女| 久久亚洲精精品中文字幕早川悠里| 成人美女视频在线观看| www.欧美.com| 欧洲一区二区三区在线| 91精品国产91久久综合桃花 | 亚洲欧洲精品天堂一级 | 99视频热这里只有精品免费| 91在线精品一区二区三区| 91免费版pro下载短视频| 欧美天天综合网| 欧美精品久久久久久久多人混战| 成人性生交大合| 色婷婷综合久色| 91精品欧美综合在线观看最新| 成人av免费在线播放| 91成人网在线| 欧美大片一区二区三区| 欧美韩日一区二区三区四区| 亚洲综合激情网| 精品亚洲porn| 色狠狠一区二区三区香蕉| 日韩欧美精品在线视频| 亚洲欧洲成人精品av97| 蜜臀av一区二区在线观看| 成人精品一区二区三区中文字幕| 奇米777欧美一区二区| 国产高清精品网站| 精品视频在线免费| 国产欧美日韩在线| 日韩电影在线一区二区| 97se狠狠狠综合亚洲狠狠| 日韩你懂的在线播放| 亚洲丝袜另类动漫二区| 久久精品国产亚洲a| 99re免费视频精品全部| 久久青草欧美一区二区三区| 午夜久久久久久久久久一区二区| 亚洲一区免费在线观看| 大尺度一区二区| 4438x亚洲最大成人网| 国产精品成人在线观看| 久久99国产精品麻豆| 色婷婷久久综合| 欧美激情一区在线| 久久av资源网| 欧美日本在线观看| 一区二区三区在线视频观看58| 亚洲日本va午夜在线电影| 精品一区二区三区免费观看 | 三级精品在线观看| 91一区二区三区在线观看| 久久精品一区四区| 免费高清视频精品| 欧美麻豆精品久久久久久| 国产欧美日韩在线| 国产成人一区二区精品非洲| 宅男噜噜噜66一区二区66| 亚洲国产综合色| 色播五月激情综合网| 亚洲欧洲av一区二区三区久久| 最新国产の精品合集bt伙计| 国模冰冰炮一区二区| 日韩欧美国产不卡| 国产成人精品aa毛片| 26uuu国产日韩综合| 九九**精品视频免费播放| 欧美综合天天夜夜久久| 亚洲蜜桃精久久久久久久|