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

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

?? 25.html

?? Tcl 語言的入門級圖書
?? HTML
字號:
<HTML><TITLE>Basic Syntax and I/O: Curly Brackets</TITLE><BODY BGCOLOR="#FFF0E0" VLINK="#0FBD0F" TEXT="#101000" LINK="#0F0FDD">
<A NAME="top"><H1>Curly Brackets</H1></A>


<P> Here is a <TT>while</TT> loop for copying a file line by line.  The condition for
continuing the loop is shown partially in pseudocode.

<PRE>
while {-1 != <CITE>the value obtained by executing</CITE> gets $InFile Line} {
  puts $OutFile $Line
}
</PRE>

<P>  Two questions come immediately to mind:

<OL>
<P> <P><LI> How can this work when it appears on three lines instead of one?
<P> <P><LI> How can this work if the variables are substituted before the
<TT>while</TT> procedure is executed?
</OL>

The answers to both questions lie in the way curly brackets are processed.

<P> <CITE>When curly brackets surround a command argument,</CITE> they cause the Tcl
interpreter to consider everything between the curly brackets as a sealed
string that does not need processing.  In particular, it needs no substitutions
and no consideration of end-of-line symbols.  More precisely, 

<UL>

<P> <P><LI> the interpreter forms everything inside these brackets into a string

<P> <P><LI> while forming the string, it does not do any substitutions or pay
attention to blanks or new lines.  (An exception appears below in the 

<A HREF="2.10.html" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/2.10.html">More about Substitution</A>.)

<P> <P><LI> when done, it throws away the curly brackets and passes the string
as an argument to the procedure

</UL>

<P>  This means that the <TT>while</TT> statement shown above looks like

<PRE>
while {<CITE>CONDITION</CITE>}  {<CITE>BODY</CITE>}
</PRE> 

and there is no variable substitution within the curly brackets.  What you
see for <CITE>CONDITION</CITE> and <CITE>BODY</CITE> is what the <TT>while</TT> procedure sees.  At
the beginning of each iteration, when <TT>while</TT> is evaluating the
<CITE>CONDITION</CITE> argument, it performs substitutions as a part of that
evaluation.  During each iteration, <TT>while</TT> performs substitutions to the
lines in <CITE>BODY</CITE>.  These substitutions are normal Tcl substitutions.  They
have been suppressed by the curly brackets and are performed by <TT>while</TT>
as it goes about its business.

<P> Returning to the file copying loop, the <TT>while</TT> procedure will execute this
line over and over:

<P> <PRE>
puts $OutFile $Line
</PRE> 

<CITE>Each execution</CITE> of the line begins with Tcl's normal substitutions &#150; the
same substitutions that were suppressed by the use of the curly brackets
around the second argument.  The curly brackets ensure that it is the strings
<TT>$Outfile</TT> and <TT>$Line</TT> that are available when the line is executed &#150; not the values these strings represent.  By delaying the substitution of these
variables, Tcl allows the values to change during execution of the <TT>while</TT>
loop.

<P> Here are some examples that make additional points about curly brackets.  As
you read these examples, be aware that in them <TT>puts</TT> has just <CITE>one</CITE>
argument.  This fact may not be apparent as the examples appear to you.

<UL>

<P> <P><LI> Curly brackets may be nested.  For example,

<PRE>
% puts {a{x}b}
a{x}b
</PRE>

<P> <P><LI> An argument is considered to be surrounded by curly brackets if, and
only if, it begins with a curly bracket.  In the next example, the curly
brackets do not surround the argument.  Therefore, they do not affect
the substitution of the variable named <TT>X.</TT>

<PRE>
% puts 1{$X}1
1{$X}1
</PRE> 

The next example shows an error.

<PRE>
% puts {X}1
extra characters after close-brace
</PRE>

The error message is <TT>puts</TT>' return string.  The error is that the
argument begins with a curly bracket but is not surrounded by curly brackets.
</UL>

<P>  <P><A NAME="2.5a">
<STRONG>Exercise 2.5a</STRONG> </A><DL><DD>
  Write a Tcl command that assigns the string
"Hello World" (without the quotes) to the variable named <TT>X.</TT>
<P>
<A HREF="2.11.html#Sol2.5a" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/2.11.html#Sol2.5a">Solution</A></DL>
 

<P> <P><A NAME="2.5b">
<STRONG>Exercise 2.5b</STRONG> </A><DL><DD>
  What are the values of <TT>X,</TT> <TT>Y,</TT> and <TT>Z</TT>
after these statements have executed?

<PRE>
set X 2
set Y {$X}
set Z VAR-{$X}
</PRE>


In the last <TT>set</TT> statement there are just two arguments even though your
browser may show more.  

<P>
<A HREF="2.11.html#Sol2.5b" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/2.11.html#Sol2.5b">Solution</A></DL>
 
<P>  
<!-- Linkbar -->
<P><CENTER><FONT SIZE=2><NOBR>
<STRONG>From</STRONG>
<A HREF="javascript:if(confirm('http://www.mapfree.com/sbf/tcl/book/home.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.mapfree.com/sbf/tcl/book/home.html'" tppabs="http://www.mapfree.com/sbf/tcl/book/home.html">Tcl/Tk For Programmers</A><WBR>
<STRONG>Previous</STRONG>
<A HREF="2.4.html" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/2.4.html">section</A><WBR>
<STRONG>Next</STRONG>
<A HREF="2.6.html" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/2.6.html">section</A><WBR>
<STRONG>All</STRONG>
<A HREF="2.html" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/2.html">sections</A><WBR>
<STRONG>Author</STRONG>
<A HREF="javascript:if(confirm('http://www.mapfree.com/mp/jaz/home.html  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.mapfree.com/mp/jaz/home.html'" tppabs="http://www.mapfree.com/mp/jaz/home.html">J. A. Zimmer</A><WBR>
<STRONG>Copyright</STRONG>
<A HREF="copyright.html" tppabs="http://www.mapfree.com/sbf/tcl/book/select/Html/copyright.html">Notice</A><WBR>
<P>
<I>Jun 17, 1998</I>
 </NOBR></FONT></CENTER></BODY></HTML>


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区精品性色 | 欧美亚洲国产一区二区三区va| 丝袜美腿亚洲色图| 亚洲精品国久久99热| 国产精品久久久久久久久快鸭| 国产精品日产欧美久久久久| 国产日韩在线不卡| 国产日韩在线不卡| 国产精品美女久久久久久久久| 国产精品免费久久| 综合色中文字幕| 亚洲日本va在线观看| 一区二区三区在线观看动漫 | 91麻豆精品国产91久久久使用方法 | 久久精品国产一区二区三区免费看| 亚洲成人综合视频| 青青草国产精品亚洲专区无| 久久福利资源站| 丁香天五香天堂综合| 91蜜桃网址入口| 欧美日韩一级二级三级| 欧美成人r级一区二区三区| 久久精品一级爱片| 一色屋精品亚洲香蕉网站| 亚洲伊人色欲综合网| 日韩av高清在线观看| 国产成人av一区| 91精品办公室少妇高潮对白| 日韩一级视频免费观看在线| 国产精品网站在线播放| 午夜久久久久久久久久一区二区| 久久超碰97人人做人人爱| 99久久综合国产精品| 欧美精品1区2区| 国产精品妹子av| 日韩精品一二三四| av欧美精品.com| 欧美一区二区日韩| 亚洲四区在线观看| 精品亚洲aⅴ乱码一区二区三区| 91视频免费看| 欧美电影免费观看高清完整版在 | 久久久噜噜噜久久人人看 | av电影天堂一区二区在线| 日韩午夜在线影院| 亚洲九九爱视频| 国产成人亚洲综合a∨婷婷| 欧美体内she精高潮| 国产视频一区二区三区在线观看| 亚洲二区在线视频| 成人视屏免费看| 欧美v日韩v国产v| 午夜欧美一区二区三区在线播放| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 久久国内精品自在自线400部| 94色蜜桃网一区二区三区| 国产精品久久久久影视| 日韩av中文在线观看| 91免费看`日韩一区二区| 久久久久久久久岛国免费| 午夜视频在线观看一区二区三区| 91蜜桃传媒精品久久久一区二区| 久久夜色精品一区| 久久精品国产亚洲高清剧情介绍 | 国产精品久久久久久久久果冻传媒| 日本vs亚洲vs韩国一区三区二区| 欧美午夜精品一区二区三区 | 日韩一区二区在线播放| 亚洲成人精品影院| 欧美日韩中字一区| 亚洲宅男天堂在线观看无病毒| 成人av在线播放网站| 日本一区二区三区视频视频| 国产精品夜夜嗨| 久久久久国产一区二区三区四区| 久久99热这里只有精品| 日韩欧美不卡在线观看视频| 日本亚洲最大的色成网站www| 欧美人牲a欧美精品| 视频在线观看91| 日韩一区二区三区视频在线观看| 蜜桃av一区二区三区电影| 日韩一区二区中文字幕| 精品一区二区三区在线播放| 欧美精品一区二区三区蜜桃视频| 国产综合久久久久影院| 久久久久九九视频| www.成人在线| 亚洲国产精品视频| 欧美伦理影视网| 毛片一区二区三区| 久久精品亚洲国产奇米99| 成人在线视频首页| 亚洲精品国产第一综合99久久| 欧亚一区二区三区| 日本aⅴ亚洲精品中文乱码| 精品国产伦一区二区三区观看体验 | 肉丝袜脚交视频一区二区| 日韩亚洲欧美在线| 国产激情91久久精品导航| 亚洲欧洲日本在线| 欧美老女人在线| 国产一区二区看久久| 中文字幕在线视频一区| 在线观看91精品国产麻豆| 国产精品一区二区你懂的| 一区二区三区四区在线播放| 91麻豆精品国产91久久久久久久久| 久久狠狠亚洲综合| 有码一区二区三区| 日韩视频中午一区| 波多野结衣中文字幕一区二区三区 | 国产精品久久久爽爽爽麻豆色哟哟| 欧美午夜片在线看| 狠狠色伊人亚洲综合成人| 亚洲免费在线电影| 久久这里只有精品视频网| 色婷婷国产精品| 精品一区二区三区欧美| 亚洲精品视频在线| 26uuu亚洲综合色欧美 | 国产综合色在线视频区| 亚洲一区二区3| 国产精品视频免费| 日韩一区二区三区视频在线| 在线免费亚洲电影| 国产成人免费视| 蜜臀久久99精品久久久久久9| 中文字幕制服丝袜一区二区三区| 欧美成人r级一区二区三区| 91搞黄在线观看| 99国产精品久久久| 国产91在线观看丝袜| 久久99精品国产.久久久久| 亚洲www啪成人一区二区麻豆| 国产日韩av一区| 精品国偷自产国产一区| 5月丁香婷婷综合| 欧美三级日本三级少妇99| 色综合天天在线| 国产精品 日产精品 欧美精品| 日韩中文字幕麻豆| 亚洲香蕉伊在人在线观| 亚洲免费观看视频| 国产精品久久久久久一区二区三区| 国产亚洲污的网站| 精品久久人人做人人爰| 日韩一级完整毛片| 日韩视频123| 欧美大片在线观看一区二区| 欧美高清激情brazzers| 欧美特级限制片免费在线观看| 在线观看日韩电影| 欧美午夜不卡视频| 色女孩综合影院| 欧美亚洲国产一区二区三区va| 日本久久一区二区三区| 色婷婷一区二区| 欧美日韩aaa| 日韩欧美一区在线| 精品福利在线导航| 欧美经典一区二区| 亚洲欧洲精品成人久久奇米网| 亚洲视频香蕉人妖| 亚洲一线二线三线视频| 五月天精品一区二区三区| 日韩在线a电影| 国产一区二区网址| av在线播放成人| 欧美丝袜丝交足nylons图片| 91精品欧美福利在线观看| 精品少妇一区二区三区| 国产精品乱人伦中文| 亚洲高清久久久| 国产真实精品久久二三区| 成人av在线电影| 欧美体内she精视频| 精品成人一区二区| 中文字幕一区二| 奇米影视一区二区三区| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 亚洲线精品一区二区三区八戒| 日本va欧美va精品发布| 国产精品亚洲第一| 欧美性一二三区| 久久先锋影音av鲁色资源 | 69堂亚洲精品首页| 日本一区二区三区电影| 亚洲成人激情社区| 国产成人精品一区二| 欧美亚洲国产一区二区三区va | 中文字幕第一区综合| 亚洲香肠在线观看| 国产91在线观看丝袜| 欧美人与性动xxxx| 亚洲视频网在线直播| 国产曰批免费观看久久久| 欧美亚洲综合一区| 国产精品久久久久久久久搜平片 | 日韩久久免费av|