C# continue 用法

C# continue 用法
C# continue 用法

C# continue用法

continue 语句将控制权传递给它所在的封闭迭代语句的下一次迭代。

continue语句和break语句相似。所不同的是,它不是退出一个循环,而是开始循环的一次新迭代。即不执行封闭迭代语句continue后面的代码,继续循环。

continue语句只能用在while语句、do/while语句、for语句、if语句的循环体内,在其它地方使用都会引起错误!

换言之,continue语句是执行流程语句跳过循环体的剩余部分而继续执行下一个循环

示例:

在此示例中,计数器最初是从 1 到 10 进行计数,但通过将 continue 语句与表达式(i < 9)一起使用,跳过了 continue 与 for 循环体末尾之间的语句。

using System;

class ContinueTest

{

static void Main()

{

for (int i = 1; i <= 10; i++)

{

if (i < 9)

{

continue;

}

Console.WriteLine(i);

}

}

}

输出:

9

10

不定代词用法总结

不定代词总结 一、不定代词 some 与 any 的用法区别 一般说来,不定代词some 用于肯定句中,any 用于否定句和疑问句中。但是,在表示请求、邀请或征求意见的句子中,通常要用 some 而不用any: Would you like some cake 吃点蛋糕吗 Why not buy some bread 为什么不买些面包呢 Shall I get some chalk for you 要我帮你拿些粉笔来吗 【说明】不定代词any 有时也用于肯定句中,此时表示“任何”: Any colour will do. 任何颜色都行。Come any day you like. 随便哪天来都可以。 二、不定代词 many 与 much 的用法以及区别 不定代词many 和 much 都表示“许多”,但 many 修饰或代替可数名词(复数),与 few(少数)相对;而 much 用来修饰或代替不可数名词(单数),与little(少量)相对。在口语中两者主要用于非肯定句中: Did you see many people there 你在那儿看见许多人了吗 We don’t have much time. 我们没有许多时间。 Much work has been done. 许多工作都已经做了。 You’ve given me too much. 你已给我太多了。 Take as many (much) as you want. 你要多少拿多少。 I asked her a great many questions. 我问了她许多问题。 辨析:too much;much too; too many 1、too much常用作副词或代词,也可以用作形容词修饰不可数名词.如: Is watching TV too much good or bad for your health电视看得太多对你的健康有益还是有害 You've given me too much.你给我的太多了. We've had too much rain lately.最近我们这里的雨下得太多了. 2、much too常作副词,后接副词或形容词.如: He drove much too fast.他开车开得太快了. It is much too cold.天实在太冷了. 3、too many常用作形容词,修饰可数名词复数.如:

c语言continue的用法

c语言continue的用法 C语言是一门通用计算机编程语言,应用广泛。下面,为大家整理了c语言continue的用法,希望对你有帮助哦! continue 语句强制控制转移到最小的封闭、为或while 循环的控制表达式。将控制权传递给它所在的封闭迭代语句的下一次迭代。continue语句和break语句相似。所不同的是,它不是退出一个循环,而是开始循环的一次新迭代。 continue语句只能用在while语句、do/while语句、for语句、if语句的循环体内,在其它地方使用都会引起错误!换言之,continue 语句是执行流程语句跳过循环体的剩余部分而继续执行下一个循环。 continue的用法示例: 1、for(var i=1;i<=10;i++) { if(i==6) continue; document.write(i); } //输出结果:1234578910 2、在此示例中,计数器最初是从1 到10 进行计数,但通过将continue 语句与表达式(i < 9) 一起使用,跳过了continue 与for 循环体末尾之间的语句。

using System; class ContinueTest { static void Main() { for (int i = 1; i <= 10; i++) { if (i < 9) { continue; } Console.WriteLine(i); } } } 输出: 9 10 对比一break和continue的用法:break的用法: while(表达式1){

…… if(表达式2) break; …… } continue的用法: while(表达式1){ …… if(表达式2) continue; …… } 注意:continue与break语句区分 continue:作用为结束本次循环,即跳过循环体中下面尚未执行的语句,接着进行下一次是否执行循环的判定. break:可以用来从循环体内跳出循环体,即提前结束循环,接着执行循环下面的语句 .

不定代词用法总结

不定代词用法总结-标准化文件发布号:(9556-EUATWK-MWUB-WUNN-INNUL-DDQTY-KII

不定代词用法总结 1) some, any, no的用法 a. some和any通常用于表示不定数或不定量,修饰复数可数名词或不可数名词。some表示“几个;一些;部 分”,多用于肯定句;而any表示“一些;什么;任何;”,对用于否定句或疑问句中。如: * He asked me some questions. (他问了我几个问题。) * Some of the bread has been eaten. (面包已吃了一些。) * Are there any stamps in this post office (这个邮局里有邮票吗?) * I didn’t have any cigarettes, so I went out to buy some. (我没有香烟了,所以出去买了一些。) b. 刚才我们说some一般用于肯定句而any一般用于否定句和疑问句。但有时也有例外。这要根据句子意思来 看。 * I could not answer some of his questions. (我不能回答他的某些问题。) (some用在否定句中表示“一些;部分”。如果说成:I could not answer any of his questions.意思就变了,它表示“我不能回答他的任何问题。”) * Will you get me some apples on your way back (你回来的路上能给我带一些苹果吗?) (some用在疑问句中大多表示“请求” 或“建议”) * Let me know if you hear any news. (如果你有任何消息请告诉我。) (any用在条件从句中表示“任何”) * “What would you like to drink” “Any will do.” (“你想喝什么?”“哪种都行。”) (any在这里表示“任何”) c. no在句子中作定语,表示否定,意思是“没有;不是”,它可以修饰可数名词的单数和复数形式或不可数名 词。 * There are no letters for you today. (今天没有你的信。) * I have no money at the moment. Could you lend me some (我现在没有钱。你能借我一些吗?) 2) 复合不定代词的用法 a. 不定代词some, any, no与-one, -body, -thing可以组成九个复合代词。它们是: someone anyone no one somebody anybody nobody something anything nothing 这些复合不定代词只有名词的性质,可以作主语、宾语等。 b. 因为some一般用于肯定句,any一般用于否定句或疑问句,no表示完全否定,因此由some, any, no与-one, - body组成的复合代词的用法也一样。 c. 第二部分为-one和-body的复合代词只用于表示人,它们的形式是单数形式,但有时可以用they或them指 代。 * There is someone in your office. Can you hear them talking (你办公室里有人。你听见他们说话了吗?) d. 第二部分为-thing的复合代词只能用于指物。如: * There was something wrong with the car so he had to stopped it. * He looked at me and didn’t say anything. * Nothing can be done to save her life. e. 这些复合不定代词如果有其它的形容词修饰,形容词必须后置。如: * Somebody important has arrived, I’m sure. (important修饰somebody) 3) one和none的用法 不定代词one指代可数名词的单数,即指人,也指物。它的复数形式是ones。在句中可以作主语、宾语、定语等。 * He is not the one who is easily cheated. (one指人) * I’ve made some cakes. Would you like one of them (one指物) * I prefer red roses to white ones. (ones指物) * Are they the ones who moved here a few days ago (ones指人) 4) all, every, each, other, another, either, neither, both a. every只有形容词的性质,在句中作定语。常用于修饰单数的可数名词。表示“每个;各个”,还可以表示“一 切”。 * After the strong wind every flower in the garden was gone. every还可以和-one, -thing, -body构成复合不定代词,即:everyone, everything, everybody。其中,everyone和everybody用于指人,意思一样,都是“每人;大家”,形式上表示单数意思上可以表示单数也可以表示复数。everything用于指物,意思是“每件事;一切”,形式上表示单数意思上可以表示单数也可以表示复数。如:* One can’t have everything. * Everything goes well with me. * The town is so small that everybody knows everybody else. 注意:在使用everyone时要注意和every one相区别。everyone是一个不定代词而every on是一个词组,前者只能指人而后者既可以指人也可以指物。请注意下列例句: * Everyone will be here except Patrick. (everyone 指人) * Every one of the children will get a gift. (every one也指人) *We played several matches against the visitors, but unluckily lost every one. (every one指物)

for循环的简介及break和continue的区别

for循环的简介及break和continue的区别 1.for循环 for循环是更加简洁的循环语句,大部分情况下,for循环可以代替while循环、do-while循环。 for循环的格式为: for( 初始语句 ; 执行条件 ; 增量) { 循环体 } 执行顺序:1、初始语句2、执行条件是否符合?3、循环体4、增加增量 初始化语句只在循环开始前执行一次,每次执行循环体时要先判断是否符合条件,如果循环条件还会true,则执行循环体,在执行迭代语句。 所以对于for循环,循环条件总比循环体多执行一次。 注意:for循环的循环体和迭代语句不在一起(while和do-while是在一起的)所以如果使用continue来结束本次循 环,迭代语句还有继续运行,而while和do-while的迭代部分是不运行的。 来个例子:输入一个数n(n>1),输出n!的值。n!(n的阶层)=1*2*3*……*n #include void main() { long num=1; int n,i; printf("请输入n:");

scanf("%d",&n); for(i=1;i<=n;i++) num=num*i; printf("%d的阶层是%d\n",n,num); } 2.break和continue的区别和作用 break和continue都是用来控制循环结构的,主要是停止循环。 1.break 有时候我们想在某种条件出现的时候终止循环而不是等到循环条件为false才终止。 这是我们可以使用break来完成。break用于完全结束一个循环,跳出循环体执行循环后面的语句。 2.continue continue和break有点类似,区别在于continue只是终止本次循环,接着还执行后面的循环,break则完全终止循环。 可以理解为continue是跳过当次循环中剩下的语句,执行下一次循环。 例子: #include void main() { int sum,i; sum=0; for(i=1;i<=100;i++) { sum=sum+i; if(i==2) {

不定代词用法归纳

不定代词用法归纳(详细讲解) ■本站特约作者陈根花 一、不定代词概说 英语的不定代词有 all, each, both, either, neither, one, none, little, few, many, much, other, another, some, any, no, (a) few, (a) little, both, enough, every 等,以及由 some, any, no 和 every 构成的合成代词(即somebody, anyone, nothing 等)。在这些不定代词中,多数都能作主语、宾语、表语或定语,但是代词 none 以及由 some, any, no 和 every 构成的合成代词只能作主语、宾语或表语,不能作定语,而 no 和 every 则只用作定语。 二、指两者和三者的不定代词 有些不定代词用于指两者(如both, either, neither),有的不定代词用于指三者(如all, any, none, every),注意不要弄混: Both of my parents are doctors. 我的父母都是医生。 All of the students are interested in it. 所有的学生对此都很感兴趣。 There are trees on any side of the square. 广场的每一边都种有树。 He has two sons, neither of whom is rich. 他有两个儿子,都不富有。 He has three sons, none of whom is rich. 他有三个儿子,都不富有。 【说明】each 可用于两者、三者或三者以上,而 every 只用于三者或三者以上,因此用于两者时只能用 each,不能用 every。如不能说 There are trees on every side of the road. 三、复合不定代词的用法特点 复合不定代词包括 something, somebody, someone, anything, anybody, anyone, nothing, nobody, no one, everything, everybody, everyone 等。它们在句中可用作主语、宾语或表语,但不能用作定语。something, someone 等和 anything, anyone等的区别与 some 和 any 的区别一样,前者一般用于肯定句,后者一般用于否定句、疑问句或条件句(参见 any & some)。具体使用时应注意以下几点: 1.复合不定代词受定语修饰时,定语应放在它们后面: There is nothing wrong with the radio. 这收音机没有毛病。 Have you seen anyone [anybody] famous? 你见过名人吗? 2.指人的复合不定代词若用作主语,其谓语动词一般用单数,相应的人称代词和物主代词也用单数 he, him, his (不一定指男性)。但在非正式文体中常用复数代词 they, them, their:Everyone knows this, doesn’t he [don’t they]?人人都知道这一点,不是吗? If anybody [anyone] comes, ask him [them] to wait. 要是有人来,让他等着。 3.指事物的复合不定代词若用作主语,谓语动词只能用单数,相应的人称代词也只能用 it,而不用 they:

continue的第三人称单数和例句

continue的第三人称单数和例句 continue做动词有继续;连续;维持;持续等意思,那么你知道continue的第三人称单数是什么吗?下面为大家带来continue的第三人称单数和用法例句,欢迎大家学习! continue的第三人称单数: continues continue的用法: continue的用法1:continue的基本意思是“继续”,指动作或状态的继续或持续不中断。可表示一件事一直在做,中间没有停歇; 也可以表示中间有一个中断,又接着做下去。 continue的用法2:continue可用作不及物动词,也可用作及物动词。用作及物动词时可接名词、动名词、动词不定式或that从句作宾语,也可以接as短语充当补足语的复合宾语。continue还可引出直接引语。 continue的用法3:continue还可用作系动词,接(to be+) adj. 或as+ n. 作表语, to be常可以省略。 continue第三人称单数例句: 1. But as other shops fold, the march of the superstores continues. 但在其他商店纷纷关门倒闭之时,大型超市的强劲扩张势头却依

旧不减。 2. He continues to insulate his country from the contagion of foreign ideas. 他继续使本国远离外来思想的侵袭。 3. The main road continues towards Viterbo before turning right to Bolsena. 大路一直延伸到维泰博,之后右转通向博尔塞纳。 4. The group said it continues to hold 1,774,687 Vons shares. 该集团称其继续持有1,774,687股冯氏公司的股份。 5. Life continues to be a terrible grind for the ordinary person. 生活对于平头百姓而言依然是理不清的琐事。 6. The balance continues to swing away from final examinations to continuous assessment. 期末考试渐渐被连续性评估所取代。 7. The old fable continues to echo down the centuries. 这则古老的寓言流传了数个世纪。 8. Our discussion in the previous chapter continues this line of thinking. 我们上一章的讨论延续了这一思路。 9. The main path continues through a tunnel of trees.

不定代词的用法

不定代词用法归纳 一、不定代词概说 英语的不定代词有all, each, both, either, neither, one, none, little, few, many, much, other, another, some, a ny, no, (a) few, (a) little, both, enough, every 等,以及由some, any, no 和every 构成的合成代词(即somebody, anyone, nothing 等)。在这些不定代词中,多数都能作主语、宾语、表语或定语,但是代词none 以及由some, an y, no 和every 构成的合成代词只能作主语、宾语或表语,不能作定语,而no 和every 则只用作定语。 二、指两者和三者的不定代词 有些不定代词用于指两者(如both, either, neither),有的不定代词用于指三者(如all, any, none, every),注意不要弄混: Both of my parents are doctors. 我的父母都是医生。 All of the students are interested in it. 所有的学生对此都很感兴趣。 There are trees on any side of the square. 广场的每一边都种有树。 He has two sons, neither of whom is rich. 他有两个儿子,都不富有。 He has three sons, none of whom is rich. 他有三个儿子,都不富有。 【说明】each 可用于两者、三者或三者以上,而every 只用于三者或三者以上,因此用于两者时只能用eac h,不能用every。如不能说There are trees on every side of the road. 三、复合不定代词的用法特点 复合不定代词包括something, somebody, someone, anything, anybody, anyone, nothing, nobody, no one, ever ything, everybody, everyone 等。它们在句中可用作主语、宾语或表语,但不能用作定语。something, someone 等和anything, anyone等的区别与some 和any 的区别一样,前者一般用于肯定句,后者一般用于否定句、疑问句或条件句(参见any & some)。具体使用时应注意以下几点: 1.复合不定代词受定语修饰时,定语应放在它们后面: There is nothing wrong with the radio. 这收音机没有毛病。 Have you seen anyone [anybody] famous? 你见过名人吗? 2.指人的复合不定代词若用作主语,其谓语动词一般用单数,相应的人称代词和物主代词也用单数he, him, his (不一定指男性)。但在非正式文体中常用复数代词they, them, their: Everyone knows this, doesn’t he [don’t they]? 人人都知道这一点,不是吗? If anybody [anyone] comes, ask him [them] to wait. 要是有人来,让他等着。 3.指事物的复合不定代词若用作主语,谓语动词只能用单数,相应的人称代词也只能用it,而不用they: Everything is ready, isn’t it? 一切都准备好了,是吗? 4.anyone, everyone 等只能指人,不能指物,且其后一般不接of 短语。若是指物或后接of 短语,可用any one, every one (分开写): any one of the boys (books) 孩子们(书)当中的任何一个(本) every one of the students (schools) 每一个学生(一所学校) 四、是any not 还是not any 按英语习惯,any 以及含有any的复合不定代词用于否定句时,它只能出现在否定词之后,而不能在否定词之前: 误:Any one doesn’t know how to do it. 正:No one knows how to do it. 任何人都不知道如何做它。 误:Anybody [Anyone] cannot do it.

java中break用法

1、return 语句的作用 (1) return 从当前的方法中退出,返回到该调用的方法的语句处,继续执行 (2) return 返回一个值给调用该方法的语句,返回值的数据类型必须与方法的声明中的返回值的类型一致,可以使用强制类型转换来是数据类型一致 (3) return 当方法说明中用void声明返回类型为空时,应使用这种格式,不返回任 何值。 2、break语句的作用 (1) 只能在循环体内和switch语句体内使用break语句。 (2) 当break出现在循环体中的switch语句体内时,其作用只是跳出该switch语句体。 (3) 当break出现在循环体中,但并不在switch语句体内时,则在执行break后,跳出本层循环体。 (4) 在循环结构中,应用break语句使流程跳出本层循环体,从而提前结束本层循环3、continue语句作用 (1) continue语句continue语句的一般形式为:contonue; (2) 其作用是结束本次循环,即跳过本次循环体中余下尚未执行的语句,接着再一次 进行循环的条件判定。 (3) 注意:执行continue语句并没有使整个循环终止。在while和do-while循环中,continue语句使得流程直接跳到循环控制条件的测试部分,然后决定循环是否继续进行。 (4) 在for 循环中,遇到continue后,跳过循环体中余下的语句,而去对for语句 中的“表达式3”求值,然后进行“表达式2”的条件测试, 最后根据“表达式2”的值来决定for循环是否执行。在循环体内,不论continue是 作为何种语句中的语句成分,都将按上述功能执行,这点与break有所不同 class Test { public static void main(String[] args) { testBreak(); testContinue(); testReturn(); } static void testBreak() { for(int i=0;i<10;i++) { if(i%2==0)

不定代词用法总结

不定代词总结 一、不定代词some 与any的用法区别 一般说来,不定代词some 用于肯定句中,any 用于否定句和疑问句中。但是,在表示请求、邀请或征求意见的句子中,通常要用some而不用any: Would you like some cake?吃点蛋糕吗? Whynot buysome bread?为什么不买些面包呢? Shall Igetsome chalk foryou?要我帮你拿些粉笔来吗? 【说明】不定代词any 有时也用于肯定句中,此时表示“任何”: Any colourwill do.任何颜色都行。Comeany day you like. 随便哪天来都可以。 二、不定代词many 与much的用法以及区别 不定代词many和much都表示“许多”,但many 修饰或代替可数名词(复数),与few(少数)相对;而much用来修饰或代替不可数名词(单数),与little(少量)相对。在口语中两者主要用于非肯定句中: Did you see manypeople there? 你在那儿看见许多人了吗? Wedon’t have much time. 我们没有许多时间。 Much workhas been done.许多工作都已经做了。 You’ve given metoo much. 你已给我太多了。 Take asmany (much)as youwant.你要多少拿多少。 I asked heragreat manyquestions. 我问了她许多问题。 辨析:too much;muchtoo;toomany 1、toomuch常用作副词或代词,也可以用作形容词修饰不可数名词.如: Is watching TV too much good orbad foryour health?电视看得太多对你的健康有益还是有害? You'vegivenme toomuch.你给我的太多了. We've hadtoo much rain lately.最近我们这里的雨下得太多了. 2、much too常作副词,后接副词或形容词.如: He drovemuch too fast.他开车开得太快了.

continue的用法与搭配

continue的用法与搭配 1. 表示继续做某事,其后既可接动名词也可接不定式,且意义相同。如: They continued to meet [meeting] daily. 他们继续每天都见面。 He continued to write [writing] while in hospital. 他住院时他继续写作。 Prices continued to fall during April.价格在4月份继续下跌。 We continued talking till late.我们一直谈到很晚的时候。 2. 表示继续维持某一情况时,其后可直接跟名词作宾语,也可先接介词with 再接宾语。如:We will continue (with) the payments for another year. 我们这样的报酬还要维持1年。 We'll continue with our work.我们要继续做。 She did not continue with her explanation.她没有继续解释下去。 He continued with his reading as if nothing important had happened.他若无其事地又继续看他的书。 Please continue with what you were doing before I came in.请继续做我进来前你们所做的事。3. 按传统语法,表示中断以后再继续,其后通常只能是story, speech, journey, strike 这样的名词,而不能接不定式或动名词,但现代英语已打破此规则。如: We continued working [to work] after the break. 休息后我们继续工作。 4. 由于可用于及物或不及物动词,所以有时用主动语态和被动语态意思差不多。如: The story continues [is continued] in the next issue of the magazine. 这个故事在该杂志的下一期里继续刊载。 5.比较 continue doing sth 与 continue by doing sth:前者表示“继续做某事”,后者表示“接着做某事”。如: He continued reading (=to read) all night. 他通宵在看书。 He talked about Keats, and continued by reading us a poem. 他谈了济慈,接着给我们朗诵了一首诗。 6. continued on page 15与continued from page 15 所用介词不同,意思也不同:前者指“下续第15页”,后者指“上接第15页”。 7.可用作连系动词,其后可接形容词、介词短语等。如: We hope the weather will continue fine. 我们希望天气继续很好。 Mother continues in weak health. 母亲身体仍然很虚弱。

02-break与continue语句

break与continue语句 break的功能 在语句中结束子句, ?在switch语句中结束case子句, 使控制转到switch语句之外。 ?在循环体中使用,结束当前循环 过程,使控制转移到循环语句之 过程使控制转移到循环语句之 外的下一条语句处。

break语句的执行流程: 1 while语句for语句do-while语句 表达式2? 成立不成立 执行表达式 表达式? 成立不成立 break break break 执行表达式3表达式? 成立不成立 执行后续语句 执行后续语句执行后续语句

循环中断与继续循环 ?break再讨论 例两处需要中断 例: 找出最大素数输入n,输出1到n之内的最 两处需要中断:1、外循环时找到了 2内循环中当前数废除了大素数 问题分析: 2、内循环中当前数废除了 n =1, 2, 3, 4, 5, 6, 7, 8, 9 数据域i =1, 2, 3, 4, 5, 6, 7 查找域

循环中断与继续循环例main() { int n, i, a=1; scanf("%d",&n);例:找出最大素数scanf(%d ,&n); for( ;n>1;n--) { for(i=2;i

continue与go-on用法区别复习进程

精品文档 精品文档continue与go on用法区别 两者均可表示“继续”,有时可互换。如: The rain went on [contiuned] for three days. 雨连续下了 3 天。 This state of things cannot continue [go on] forever. 这种状况不能继续下去了。 两者区别如下: 1. go on 属普通用词,而 continue 则较正式。如: Go on, please. 请说下去。 Now, the news continues in standard English. 现在用普通英语继续报告新闻。 2. continue 后可直接跟名词作宾语,而 go on 后需借助介词再接名词作宾语。如: He continued [went on with] the story. 他继续讲故事。 3. continue 后接不定式或动名词均可,含义大致相同,均表示“不停地做某事”;而 go on 后接不定式或动名词含义区别较大,即 go on doing sth 意为“不停地做某事”(不中断)或“继续做某事”(中断后继续),go on to do sth 意为“(做完某事后)接着或继续做某事”。比较: The baby contiuned to cry [crying] all night. 婴儿哭了一夜。 You can't go on working all night without a rest. 你不能通宵工作而不休息。(无中断) She nodded, smiled, and went on stitching. 她点了点头,笑了笑,又继续缝衣服。(中断后再继续) Go on to do the other exerciese after you have finished this one. 你做完这个练习后,请接着做其他的练习。

3.3.3跳转语句-break语句和continue语句比较

break与continue区别 break: 跳出(中止)所有的循环 continue: 结束本次循环,继续下一次循环 break 跳出语句块,执行下面的语句。 如果用break, 则不管其后面是否有满足for中条件的情况,都不做for中的循环体。 如果用continue,如果条件满足执行continue, 跳出下面语句的执行,而返 回到for 语句的开头,再次判断for中的条件,从而根据条件执行其中的循 环体内容。 举例: public class test { public static void main(String args[]) { System.out.println("循环没有开始"); System.out.println("现在开始测试continue"); for (int i = 0; i < 3; i++) { System.out.println("开始第" + i + "次for循环"); if (i == 1) { continue; } System.out.println("看看continue后这里执行了吗?"); } System.out.println("continue测试完毕\n***********************"); System.out.println("现在开始测试break"); for (int i = 0; i < 3; i++) { System.out.println("开始第" + i + "次for循环"); if (i == 1){ break; } System.out.println("看看break后这里执行了吗?"); } System.out.println("break测试完毕\n***********************"); } }

(完整版)不定代词用法总结

不定代词总结 一、不定代词some 与any 的用法区别 一般说来,不定代词some 用于肯定句中,any 用于否定句和疑问句中。但是,在表示请求、邀请或征求意见的句子中,通常要用some 而不用any: Would you like some cake? 吃点蛋糕吗? Why not buy some bread? 为什么不买些面包呢? Shall I get some chalk for you? 要我帮你拿些粉笔来吗? 【说明】不定代词any 有时也用于肯定句中,此时表示“任何”: Any colour will do. 任何颜色都行。Come any day you like. 随便哪天来都可以。 二、不定代词many 与much 的用法以及区别 不定代词many 和much 都表示“许多”,但many 修饰或代替可数名词(复数),与few(少数)相对;而much 用来修饰或代替不可数名词(单数),与little(少量)相对。在口语中两者主要用于非肯定句中: Did you see many people there? 你在那儿看见许多人了吗? We don’t have much time. 我们没有许多时间。 Much work has been done. 许多工作都已经做了。 You’ve given me too much. 你已给我太多了。 Take as many (much) as you want. 你要多少拿多少。 I asked her a great many questions. 我问了她许多问题。 辨析:too much;much too;too many 1、too much常用作副词或代词,也可以用作形容词修饰不可数名词.如: Is watching TV too much good or bad for your health?电视看得太多对你的健康有益还是有害? You've given me too much.你给我的太多了. We've had too much rain lately.最近我们这里的雨下得太多了. 2、much too常作副词,后接副词或形容词.如: He drove much too fast.他开车开得太快了. It is much too cold.天实在太冷了. 3、too many常用作形容词,修饰可数名词复数.如: They built too many buildings last year.去年他们建了许多楼房. 三、either、neither的用法以及区别 1、用作副词。either也(不),用于否定句中。 如:I don’t like fishing, David doesn’t like fishing, either.我不喜欢钓鱼,大卫也不喜欢。 neither也不;用于肯定句,表示否定含义。如:He can’t swim, and neither / nor can I. 他不会游泳,我也不会。 2、用作代词。范围多限定于两者之间,常用作主语。either of 和neither of +名词/代词的复数,作主语时,谓语动词用单数。 either表示“二者之一”;neither 表示“两者都不”,其反义词是both。 如:Either of the knives is useful.两把刀都有用。 Neither of them was in good health, but both worked very hard.他们两人身体都不好,但都努力地工作。 3、用作连词:either…or…不是……就是……neither…nor…既不……也不……常用来连接两个并列成分,如并列主语、并列谓语等。谓语动词保持就近原则,与离它最近的主语在人称和数上保持一致。 但应注意以下几点: 1.无论either…or…还是neither…nor…,若连接两个单数数名词/代词作主语,后面动词用单数。 Either Mary or Lucy is coming.不是玛丽来,就是露西来。 2.若连接两个复数名词/代词作主语,后面动词用复数。Neither my parents nor my grandparents are coming. 我的父母不来,我的爷爷奶奶也不来。 3.如果一个单数名词/代词和一个复数名词/代词一起作主语时,动词的单复数形式必须和最靠近的一个主语保持一致。(就近原则)

continue与go-on用法区别

外教一对一 continue与go on用法区别 两者均可表示“继续”,有时可互换。如: The rain went on [contiuned] for three days. 雨连续下了 3 天。 This state of things cannot continue [go on] forever. 这种状况不能继续下去了。 两者区别如下: 1. go on 属普通用词,而 continue 则较正式。如: Go on, please. 请说下去。 Now, the news continues in standard English. 现在用普通英语继续报告新闻。 2. continue 后可直接跟名词作宾语,而 go on 后需借助介词再接名词作宾语。如: He continued [went on with] the story. 他继续讲故事。 3. continue 后接不定式或动名词均可,含义大致相同,均表示“不停地做某事”;而 go on 后接不定式或动名词含义区别较大,即 go on doing sth 意为“不停地做某事”(不中断)或“继续做某事”(中断后继续),go on to do sth 意为“(做完某事后)接着或继续做某事”。比较: The baby contiuned to cry [crying] all night. 婴儿哭了一夜。 You can't go on working all night without a rest. 你不能通宵工作而不休息。(无中断) She nodded, smiled, and went on stitching. 她点了点头,笑了笑,又继续缝衣服。(中断后再继续) Go on to do the other exerciese after you have finished this one. 你做完这个练习后,请接着做其他的练习。 注:按传统语法,continue doing sth 只能表示不停地做某事,不能表示中断后继续做某事,但现代英语似乎已不完全遵循此规则。如 1995 年出版的《朗文当代英语辞典》就有这样一句: They contiuned talking after the meal. 吃了饭后他们又继续谈。 4. continue 可用作连系动词,go on 不可这样用。如: The weather continued fine. 天气一直很好。 The boat continued east. 船继续向东航行。

相关文档
最新文档