搜档网
当前位置:搜档网 › for的用法

for的用法

for的用法
for的用法

for的用法

for的用法的确很多,可用作介词和连词,介词用法尤为丰富。以下详细列出了用法和例句,供学习者参考。

一、prep. 介词

1. (表示目的、用途)为了;供。例如:

He went out for a walk. 他出去散步了。

He does everything only for money. 他干什么都是为了钱。

We did it just for fun. 我们做此事只是为了好玩而已。

For further details, write to this address. 欲知详情,请致函下列地址。

She was too ill to get up for dinner. 她病得无法起床吃饭。

These tickets are for next week. 这些票是下个星期的。

They have tools and garden equipment for hire. 他们有工具和园艺设备出租。

This machine is used for cutting metals. 这台机器是用来切割金属的。

These books are for the children. 这些书是儿童读物。

2. (表示对象) 为,给;对于;关于;至于,对……而言。例如:

What did you get for your birthday? 你收到了什么生日礼物?

I’ve got a present for you. 我有一件礼物要送给你。

We bought some new chairs for the office. 我们给办公室买了一些新椅子。

Watching TV too much is bad for your health. 看电视太多对你的健康有害。

Are you all right for money? (=Do you have enough money?) 你的钱够用吗?

What shall we have for lunch? 我们午餐吃什么?

It may be a little too difficult for a child like him. 对于他这样的孩子来说,这可能有点太难了.

For a beginner, he drives well. 就初学者来说,他开得不错。

3. (表示目标、去向)往;到……。例如:

Is this train for Shanghai? 这是开往上海的火车吗?

My father has left for work. 我爸爸去上班了。

I’m for bed.(=I’m going to bed.) 我打算去睡觉。

4. (表示时间、距离、数量等)达;记。例如:

We have stayed here for two months. 我们已在这儿呆两个月了。

For miles and miles we saw nothing but trees. 走了好长好长的路,除了树什么也看不到。

The diamond was insured for2,000 dollars. 这颗钻石投保了2,000美元。

5. (表示约定的时间) 在……(时间)。例如:

I’ve invited them for 9 o’clock. 我已经邀请他们9点来。

We’ve made an appointment for October 18th. 我们已经约定10月18日见面。

It’s time for supper. 是吃晚饭的时候了。

6. (=in favor of)赞成;支持;同意。例如:

How many people voted for the proposal? 多数人投票赞成这项提议?

Are you for this plan or against it? 你是支持还是反对这个计划?

I’m all for people enjoying themselves. 我完全赞成人们享乐。

7. (=instead of)代替;代表。例如:

I looked after the kids for her. 我替她照看小孩。

Mr Johnson attended the meting for our school. 杰克逊先生代表我校参加了会议。

Let me carry the box for you. 我来替你搬这个箱子吧。

8. (表示解释理由,=because of; by reason of)因为,由于。例如:

We could hardly see for the mist. 由于起雾,我们几乎看不见了。

A certain amount must be deducted for depreciation. 因贬值,必须扣除一些金额。

She was angry with him for being late. 她因他迟到而生气了。

Thank you for helping me with my English. 谢谢你帮我学习英语。

She wanted to change her job for purely personal reasons. 她想换工作纯粹出于个人原因。

9. 适合于。例如:

City life is not for me. 城市生活不适合我。

也用下列短语“be fit for; be suitable for; be appropriate for”表示“适合于”。例如:

I don’t think he is fit for the job. 我认为他不适合这项工作。

Dr Yuan’s kind of rice is the most suitable for China’s farmland. 袁博士发明的水稻品种是最适合中国土地耕种的。

His casual clothes were not appropriate for such a formal occasion. 他的便服不适宜在这样正式的场合穿。

10. 用于for sb./sth. to do sth.结构,引出动词不定式的逻辑主语。例如:

It is really unusual for Michael to get cross. 迈克尔发脾气确实是不寻常的。

I can’t bear for you to be unhappy. 看到你不高兴我受不了。

There’s nothing worse than for a parent to ill treat a child. 没有什么比父母虐待小孩更恶劣的了。

The plan is for us to leave in the morning. 按照计划我们应在上午离开。

There is an urgent need for someone to tackle this problem. 急需有人来解决这个问题。

There will be another opportunity for them to do it again. 他们还将有一次机会做这件事。

He must have had some bad news for him to be so quiet. 他这么沉默,一定是听到了什么坏消息。

I’ve sent off my coat for it to be cleaned. 我已经把大衣送去洗了。

It’s easy for a computer to keep a record of this information. 要电脑记录下来这种信息很容易。

The dolphin was near enough for me to reach out and touch it. 海豚近得我伸手就可以摸到。

It’s too difficult for me to explain. 这太难了,我无法解释。

但在一些系表结构的句子中,如果形容词是用来形容人的性格、智力、修养等特征的,则用of sb. 作逻辑主语。例如:

It is utterly stupid of her not to follow your advice. 她不听你的劝告,愚蠢之极。

It is wise of him to have married Lucia. 他娶露西亚为妻是明智之举。

It was brave enough of her to fight against the scoundrel by herself. 她孤身跟歹徒斗,可真够勇敢的。

It is kind of you to come and see me off. 你来给我送行真是太好了。

Isn’t it unwise of Bob to lie to his father? 鲍勃对他父亲撒谎不是很不明智吗?

How silly it is o…f them to idle away their youth! 他们这样浪费青春,多愚蠢!

11. 用for引出间接宾语。在一个句子中,如果间接宾语置于直接宾语之后,则需在间接宾语前加上for、to等介词。

用for引出间接宾语的动词一般表示“为;替”的含义,常用的有:make, order, find, spare, save, play, sing, paint, fetch, buy, do, cook, get, build, fix, keep, choose, reserve, book, call, cash, catch, change, cut, prepare, reach 等。例如:

Will you do a favour for me? (=Will you do me a favour?) 你能帮我一个忙吗?

She ordered a cake for him. (=She ordered him a cake.) 她为他点了一个蛋糕。

I bought a bike from that shop for my son (=I bought my son a bike from that shop.) 我从那家商店给我儿子买了一辆自行车。

如果动词表示“给;传达”的含义,则用to引出间接宾语,常用的有:bring, throw, award, accord, pay, lend, teach, read, tell, show, return, write, promise, send, give, offer, pass, hand, suggest, relate, whisper, submit,

point out, mutter, shout, mention, say, introduce, repeat, express, dedicate, explain, disclose, announce, dictate, communicate, describe, demonstrate, assign, grant, leave, sell, allow, deny, recommend, telephone, quote, cable, cause, refuse等。例如:

She offered a cup of coffee to me. (=She offered me a cup of coffee.) 她给我倒了杯咖啡。

Could you lend some money to me? (=Could you lend me some money?) 你能借给我点钱吗?

The master didn’t allow any freedom to the slaves. (=The master didn’t allow the slaves any freedom.) 奴隶制不给奴隶任何自由。

但owe, wish等一般不用介词引出间接宾语。例如:

I owe him a lot of money. 我欠他很多钱。(一般不说I owe a lot of money to him.)

I wish you a happy marriage. 祝你新婚愉快!(一般不说I wish a happy marriage to you.)

二、conj. 连词因为(表示推测或附加的原因,前后为并列句)。例如:

It must have rained last night, for the ground is wet. 昨晚一定下过雨,因为地面是湿的。

Kuntta knew day broke, for he heard the birds singing. 昆塔知道天亮了,因为他听到了鸟的叫声。

I apologized to her, for I had wronged her. 我向她道歉,因为我错怪她了。

三、惯用短语

1. 动词+for

ask for 请求,要求,寻求。account for 对……做出解释;说明……的原因。answer for对……负责。allow for 考虑到;允许有。change …for 把……换成。call for 要求;需要;提倡;邀请。care for 喜欢;关心,照顾。cut out for适合于;准备;面对。go for 去找;被认为;主张;拥护;努力获取。go in for 参加,从事;追求;赞成。head for 出发;前往;取向于。leave for 动身去。set out for出发去…… long for渴望。forage for 搜查;四处搜寻。look for寻找。hunt for搜寻,寻找。search for搜索;寻找。make for 有助于;促进;走向。make up for 弥补。pay for为…而付钱;赔偿;为…付出代价。prepare for为…准备。provide …for供给,为……提供。send for派人去拿;召唤,派人去叫。stand for代表;支持;象征。watch for当心;守候;等待。wait for等候。

2. 形容词+for

be famous for因……而著名。be good for对……有好处;有益于。be bad for对……不利;对……有害。be late for因……而迟到。be used for被用于……。be/get ready for 为……做准备。be bound for往;前往。be available for对……有用;有效。

3. 介词+for

as for关于,至于。but for要不是;如果没有。except for除了…以外;要不是由于。

4. 名词/代词+for

the reason f or ……的原因/理由。what for为什么;为何目的。

5. for+名词/代词

for example/for instance 例如。for fun 为了娱乐;开玩笑地。for sale 待售;出售。for all(=in spite of)虽然;尽管。for all I know 就我所知。for nothing 白白地;免费。for some reason由于某种原因;由于某个理由。for one thing / for another 首先/其次。for a while/moment 一会儿;片刻。for an instant片刻,瞬间。for the moment/for now/for the present/for the time being 暂时;目前。for the sake of为了……起见,看在……的份上。for anything无论如何。for one 就个人来说。for oneself为自己;独自地。for effect 做样子;为了给人良好的印象;装门面。for lack of/for want of因缺乏……for the first time 第一次;首次。for the most part 在极大程度上;多半。for the asking 只要要求。for fear of /that 生怕;以免。

6. for+其他

for sure/for certain 确切地;确凿地。for free 免费。for ever/for good 永远。for the better好转,向好的方向发展。for each/for every每……就有。

四、惯用句式

1. It’s time for sth. 该做某事了;是做某事的时候了。例如:

It’s time for class. 到上课的时间了。

It’s time for lunch. 该吃午饭了。

2. If it weren’t for sth. 要不是;如果没有。表示同现在事实相反的假设,主句用虚拟语气。例如:

If it weren’t for the rain, the crops should(would) have withered. 要是没有雨,庄稼就枯萎了。

3. If it hadn’t been for sth. 要不是;如果当时没有。表示与过去事实相反的假设,主句用虚拟语气。例如:

If i t hadn’t been for you, I would not have been alive. 要不是你,我早就没命了。

If it hadn’t been for your timely help, I would have been bankrupt. 如果没有你及时的帮助,我早就破产了。

4. That’s/There’s …for you! 那正是……的特点!那恰好跟……相反!例如:

That’s foreign hotels for you!外国旅馆就是这种德行!

I gave it to her and she just threw it away; there’s gratitude for you!我把它给了她,她却扔掉;这就是所谓的好心有好报!

5. be (in) for it 可能要挨骂;可能要受罚;倒霉。例如:

You will be in for it if she finds out what you have done! 要是她发现你做的事,你就要挨骂了!

that 用法

pron.

1. 那;那个,那人,那事,那东西

That's my English teacher over there.

那边是我的英文老师。

2. (已被提到的)那个,那人,那事,那东西

Who told her that?

那是谁告诉她那件事的?

3. 前者

4. (用作关系代词的先行词)那,那个

What is that which you have just stuffed into the plastic cup?

你刚才塞在塑料杯里的是什么东西?

5. (代替句中名词,避免重复)

The output of steel this year has increased by 20% compared with that in 1992.

今年钢产量比一九九二年增长了百分之二十。

6. (用作关系代词,引导关系从句)

a.

1. 那,那个

That book isn't mine.

那本书不是我的。

ad.

1. 【口】那样,那么

Is the problem that easy?

问题有那么简单吗?

conj.

1. (引导名词从句)

He expressed the hope that we would keep in touch with his firm.

他表示希望我们与他的公司保持联系。

My idea is that we should act on his suggestion.

我的意见是我们应当按照他的建议去办。

That she is still alive is a relief.

她还活着,这是令人感到宽慰的。

2. (引导状语从句,表示原因或理由)因为,由于

We are glad that we have accomplished another arduous task. 我们都感到高兴因为又完成了一项艰巨的任务。

3. (引导状语从句,表示目的或结果)为了,以至于

He is working hard that he can catch up with the class.

他努力用功,以便赶上班上同学。

4. (引导表示愿望,感叹的从句,主句常省略)

That I could stay at home today!

For-example与such-as的用法及区别

For example与such as的用法及区别 1)for example和such as都可当作“例如”解。但such as用来列举事 物,插在被列举事物与前面的名词之间。例如: The farm grows various kinds of crops, such as wheat, corn, cotton and rice. 这个农场种植各种各样的庄稼,例如麦子,玉米,棉花和稻米。 2)for example意为用来举例说明,有时可作为独立语,插在句中,不影 响句子其他部分的语法关系。例如: A lot of people here, for example, Mr John, would rather have coffee. 这儿的许多人,例如约翰先生,宁愿喝咖啡。 【注意】 (a)such as一般不宜与and so on连用。 (b)对前面的复数名词部分起列举作用,一般不全部列出。故不可以说: He knows four languages, such as Chinese, English, French and German. 应将such as改成namely, 后面加逗号。即:He knows four languages, namely, Chinese, English, French and German. 这两个短语都可以表米“例如”,但含义及用法不同。 l)for example强调“举例”说明,而且一般只举同类人或物中的一个作为插入语,且用逗号隔开,可置于句首、句中或句末。如: Many people here, for example, John, would rather have coffee.这里有许多人,例如约翰很喜欢喝咖啡。 There are many kinds of pollution, for example, noise is a kind of pollution.有许多种污染方式,例如噪音就是一种污染。 2)such as用来“罗列”同类人或物中的几个例子,可置于被列举的事物与前面的名词之间,但其后边不能用逗号。如: Many of the English programmes are well received, such as Follow Me, Follow Me to Science . 其中有许多英语节目,如《跟我学》《跟我学科学》,就很受欢迎。 English is spoken in many countries, such as Australia, Canada and so on.许多国家说英语,如澳大利亚加拿大 1

for 的用法

for的用法 1.表示“当作、作为”。如: I like some bread and milk for breakfast. 我喜欢把面包和牛奶作为早餐。 What will we have for supper? 我们晚餐吃什么? 2.表示理由或原因,意为“因为、由于”。如: Thank you for helping me with my English. 谢谢你帮我学习英语。 Thank you for your last letter. 谢谢你上次的来信。 Thank you for teaching us so well. 感谢你如此尽心地教我们。 3.表示动作的对象或接受者,意为“给……”、“对…… (而言)”。如: Let me pick it up for you. 让我为你捡起来。 Watching TV too much is bad for your health. 看电视太多有害于你的健康。 4.表示时间、距离,意为“计、达”。如: I usually do the running for an hour in the morning.我早晨通常跑步一小时. We will stay there for two days.我们将在那里逗留两天. 5.表示去向、目的,意为“向、往、取、买”等。如: Let’s go for a walk.我们出去散步吧。 I came here for my schoolbag. 我来这儿取书包。 I paid twenty yuan for the dictionary. 我花了20元买这本词典。 6.表示所属关系或用途,意为“为、适于……的”.如: It’s time for school.到上学的时间了。 Here is a letter for you.这儿有你的一封信。 7.表示“支持、赞成”。如: Are you for this plan or against it? 你是支持还是反对这个计划? 8.用于一些固定搭配中。如: Who are you waiting for? 你在等谁? For example, Mr Green is a kind teacher. 比如,格林先生是一位心地善良的老师。

C语言for循环语句教案

for循环结构程序设计教案 课程名称:C语言程序设计 本课内容:循环结构程序设计——for 语句 一、教学目标 1、领会程序设计中构成循环的方法 2 、掌握for 语句的用法 二、教学重点 1、for 语句的一般格式 2、for语句的执行过程 三、教学难点 for 语句的综合利用 四、教学方法 1、课堂讲授,给出主要内容。 2、讲解其基本格式。 3、应用示例,结合相应的知识讲解。 4、执行过程用流程图和例题用(演示法和讲解法)进行详细说明。 五、教学过程 (一)导入 1、复习前两节课我们学习的两种循环语句——while语句和do~while 语句的基本格式和执行过程和特征。 2、给出例子如下:

main( ) {int x=1; (表达式1) s=0; while(x<=100) (表达式2) {s=s+x; x=x+1; (表达式3) } printf(“%d”,s); } 分析用while语句来完成的程序,主要完成1到100的累加和,对一个循环程序来说最关键的三个部分:循环变量的赋初值、控制循环条件、循环控制变量的更新。 (二)教学过程 1、写出本节课要介绍的for语句的一般格式 for(表达式1;表达式2;表达式3) 循环体; 2、掌握:基本格式和各个表达式的功能和特征 强调:for语句中的所有表达式和while语句中的表达式所完成的功能是相同的。 表达式1:循环变量的初始化(初始值) 表达式2:循环条件(终止值) 表达式3:循环变量自增 3、for语句的执行过程 for ( int i = 0 ; i < 10 ; i++) { printf("我最棒"); }

英语举例 for example 的其他几种说法

英语中我们会经常用到举例说明,这时我们总会想起for example. 其实,英语中举例的说法还有很多,今天我们一起来学习一下。 1. for instance: 这个词组的用法与for example 相同。 例句1:What would you do, for instance, if you find a member of staff stealing? 比如说,如果你发现有职员偷东西,你会怎么办? 2. Let’s say: 这个词组主要用于打比方,做插入语。 例句2:You could learn the basics in, let's say, three months. 比方说,三个月你就可以掌握基本知识。 3. such as: 这个也是一个常用的词组。 例句3:Children like foods such as candies. 孩子喜欢像糖果这样的食品。 4. Namely: 意为“也就是”,用于列出具体事物。 例句4:The railroad connects two cities, namely, New York and Chicago. 这条铁路连接两个城市,即纽约与芝加哥。 5. note well:意为“同时要注意…”,接着列出要说的事。 例句5:Note well: your first written solutions constitute your first draft; this is not acceptable. 注意:你们用初次写下的答案就构成初次草稿,这是不可取的。 6. to illustrate:意为“为了说明…”,接着可进行例举。 例句6:To illustrate my point, let me tell you a little story. 为了说明我的观点,让我来给你们讲个小故事。

to与for的用法和区别

to与for的用法和区别 一般情况下, to后面常接对象; for后面表示原因与目的为多。 Thank you for helping me. Thanks to all of you. to sb.表示对某人有直接影响比如,食物对某人好或者不好就用to; for表示从意义、价值等间接角度来说,例如对某人而言是重要的,就用for. for和to这两个介词,意义丰富,用法复杂。这里仅就它们主要用法进行比较。 1. 表示各种“目的” 1. What do you study English for? 你为什么要学英语? 2. She went to france for holiday. 她到法国度假去了。 3. These books are written for pupils. 这些书是为学生些的。 4. hope for the best, prepare for the worst. 作最好的打算,作最坏的准备。 2.对于 1.She has a liking for painting. 她爱好绘画。 2.She had a natural gift for teaching. 她对教学有天赋/ 3.表示赞成同情,用for不用to. 1. Are you for the idea or against it? 你是支持还是反对这个想法? 2. He expresses sympathy for the common people.. 他表现了对普通老百姓的同情。 3. I felt deeply sorry for my friend who was very ill. 4 for表示因为,由于(常有较活译法) 1 Thank you for coming. 谢谢你来。 2. France is famous for its wines. 法国因酒而出名。 5.当事人对某事的主观看法,对于(某人),对…来说(多和形容词连用)用介词to,不用for.. He said that money was not important to him. 他说钱对他并不重要。 To her it was rather unusual. 对她来说这是相当不寻常的。 They are cruel to animals. 他们对动物很残忍。 6.for和fit, good, bad, useful, suitable 等形容词连用,表示适宜,适合。 Some training will make them fit for the job. 经过一段训练,他们会胜任这项工作的。 Exercises are good for health. 锻炼有益于健康。 Smoking and drinking are bad for health. 抽烟喝酒对健康有害。 You are not suited for the kind of work you are doing. 7. for表示不定式逻辑上的主语,可以用在主语、表语、状语、定语中。 1.It would be best for you to write to him. 2.The simple thing is for him to resign at once. 3.There was nowhere else for me to go. 4.He opened a door and stood aside for her to pass.

(完整版)介词for用法归纳

介词for用法归纳 用法1:(表目的)为了。如: They went out for a walk. 他们出去散步了。 What did you do that for? 你干吗这样做? That’s what we’re here for. 这正是我们来的目的。 What’s she gone for this time? 她这次去干什么去了? He was waiting for the bus. 他在等公共汽车。 【用法说明】在通常情况下,英语不用for doing sth 来表示目的。如: 他去那儿看他叔叔。 误:He went there for seeing his uncle. 正:He went there to see his uncle. 但是,若一个动名词已名词化,则可与for 连用表目的。如: He went there for swimming. 他去那儿游泳。(swimming 已名词化) 注意:若不是表目的,而是表原因、用途等,则其后可接动名词。(见下面的有关用法) 用法2:(表利益)为,为了。如: What can I do for you? 你想要我什么? We study hard for our motherland. 我们为祖国努力学习。 Would you please carry this for me? 请你替我提这个东西好吗? Do more exercise for the good of your health. 为了健康你要多运动。 【用法说明】(1) 有些后接双宾语的动词(如buy, choose, cook, fetch, find, get, order, prepare, sing, spare 等),当双宾语易位时,通常用for 来引出间接宾语,表示间接宾语为受益者。如: She made her daughter a dress. / She made a dress for her daughter. 她为她女儿做了件连衣裙。 He cooked us some potatoes. / He cooked some potatoes for us. 他为我们煮了些土豆。 注意,类似下面这样的句子必须用for: He bought a new chair for the office. 他为办公室买了张新办公椅。 (2) 注意不要按汉语字面意思,在一些及物动词后误加介词for: 他们决定在电视上为他们的新产品打广告。 误:They decided to advertise for their new product on TV. 正:They decided to advertise their new product on TV. 注:advertise 可用作及物或不及物动词,但含义不同:advertise sth=为卖出某物而打广告;advertise for sth=为寻找某物而打广告。如:advertise for a job=登广告求职。由于受汉语“为”的影响,而此处误加了介词for。类似地,汉语中的“为人民服务”,说成英语是serve the people,而不是serve for the people,“为某人的死报仇”,说成英语是avenge sb’s death,而不是avenge for sb’s death,等等。用法3:(表用途)用于,用来。如: Knives are used for cutting things. 小刀是用来切东西的。 This knife is for cutting bread. 这把小刀是用于切面包的。 It’s a machine for slicing bread. 这是切面包的机器。 The doctor gave her some medicine for her cold. 医生给了她一些感冒药。 用法4:为得到,为拿到,为取得。如: He went home for his book. 他回家拿书。 He went to his friend for advice. 他去向朋友请教。 She often asked her parents for money. 她经常向父母要钱。

英文论文中“such as, for example, e.g., i.e., etc., et al. ”的用法分析

英文论文中“such as, for example, e.g., i.e., etc., et al. ”的用法分析 黄龙旺龚汉忠 (上海交通大学学报编辑部, 200030,上海) 在英文论文的编辑加工中,常会遇到such as, for example, e. g. , i. e. , etc. 和et al. 的错误及混淆使用。这里,举例分析这几个词的意义,并阐述其正确用法。 1) such as。常列举同类人或事物中的几个例子。 其典型的表示式为a plural + such as + single instance( s) of the group to which the plural refers。 正确使用的是: The Arts Faculty deals only with humanities subjects such as history and literature. 混淆使用的是: The Science Faculty deals only with the measurable such as physics and seismology. 论文中常出现such as与and so on或etc. 连用, 这是不正确的。 ①如 It is noted that the features such as clean cut ratio denoted by R c , die roll height denoted by H dr and die roll width denoted by W dr , and so on (有的出现etc.) , are better than the ones with the other models. 应为 It is noted that the features, such as clean cut ratio denoted by R c , die roll height denoted by H dr and die roll width denoted by W dr , are better than the ones with the other models. 当使用such as时,读者已理解后面接着的会是一些不完整的列举,因此不需加上and so on或 etc. 等。 ②因为such as是对前面的复数名词部分起列举作用,若全部列举出,要改用namely,意思为“即”。文章中出现的He knows four languages, such as Chinese, English, Japanese and German,应将such as改成namely(或i. e. )及后面加逗号, 即He knows four languages, namely, Chinese, English, Japanese and German. ③用such as来形容复数名词( the plural)可以放在such与as中间,一般插在被列举事物与前面的名词之间。 2) for example。用来举例说明,由它引出介绍普遍概念的例子,使用范围要比 such as自由。可以出现在句首、句末或有时可作为独立语,插在句中,不影响句子其他部分的语法关系。 例如, Cryptography operations, for example, decryption or signing, in a given period only involve the corresponding temporary secret key without further access to the helper. 同样for example ( e. g. )表示泛泛地举几个例子,并没有囊括所有的实例,其中就已经包含“等等”,如果再加etc. 或and so on,就画蛇添足了。 如论文中出现的这句话是不当的:Writing instructors focus on a number of complex skills that require extensive practice (e. g. , organization, clear

批处理命令for语句基本用法

批处理命令for语句的基本用法 [系列教程]批处理for语句从入门到精通[20101225更新] ____________________________版主提醒 ____________________________ 文档来自于网络搜索 为了避免影响技术讨论、提高看帖的舒适性,请大家不要在此帖下跟 无实质内容的口水帖,特别是纯顶、纯支持、纯感谢、路过之类的帖子, 管理人员将不定期清理此类回帖,请大家多参与讨论少灌水,与人方便, 终将给自己带来方便,谢谢合作。 ________________________________________________________________ 文档来自于网络搜索 批处理是一门简单的脚本语言,虽然不能独当一面,但是,若作为工作中的辅助工具,绝对会让大家有随用随写、称心如意的畅快感。 文档来自于网络搜索 和其他语言相比,批处理语言有其先天性的优势: 1、系统自带,无需另行安装; 2、命令少,语句简洁,上手非常快; 3、编写出来的脚本小巧玲珑,随写随用; 但是,因为它以命令行方式工作,操作多有不便,在图形界面大行其道的windows世界里,多多少少会让大众望而却步;就算是对命令行有好感的新手,面对微软有如天书的帮助文件,很多人也会败下阵来,因此,论坛里很多会员也发出了编写系统的批处理教程的呼声。

文档来自于网络搜索 编写系统的批处理新手教程,一直是论坛管理层讨论的热点问题,但是,各位管理人员大多都有工作在身,而系统的教程涉及的面是如此之广,面对如此浩大的工程,仅凭一两个人的力量,是难以做好的,因此,本人退而求其次,此次发布的教程,以专题的形式编写,日后人手渐多之后,再考虑组织人力编写全面的教程。 文档来自于网络搜索之所以选择最难的for,一是觉得for最为强大,是大多数人最希望掌握的;二是若写其他命令教程,如果没有for的基础,展开来讲解会无从下手;三是for也是批处理中最复杂最难掌握的语句,把它攻克了,批处理的学习将会一片坦途。 文档来自于网络搜索 这次的for语句系列教程,打算按照for语句的5种句式逐一展开,在讲解for/f的时候,会穿插讲解批处理中一个最为关键、也是新手最容易犯错的概念:变量延迟,大纲如下: 文档来自于网络搜索一前言 二for语句的基本用法 三for /f(含变量延迟) 四for /r 五for /d 六for /l 遵照yibantiaokuan的建议,在顶楼放出此教程的txt版本、word版本和pdf版本,以方便那些离线浏览的会员。 文档来自于网络搜索[本帖最后由namejm于2010-12-26 02:36编辑]

介词for用法完全归纳

用法1:(表目的)为了。如: They went out for a walk. 他们出去散步了。 What did you do that for? 你干吗这样做? That’s what we’re here for. 这正是我们来的目的。 What’s she gone for this time? 她这次去干什么去了? He was waiting for the bus. 他在等公共汽车。 【用法说明】在通常情况下,英语不用for doing sth 来表示目的。如:他去那儿看他叔叔。 误:He went there for seeing his uncle. 正:He went there to see his uncle. 但是,若一个动名词已名词化,则可与for 连用表目的。如: He went there for swimming. 他去那儿游泳。(swimming 已名词化) 注意:若不是表目的,而是表原因、用途等,则其后可接动名词。(见下面的有关用法) 用法2:(表利益)为,为了。如: What can I do for you? 你想要我什么? We study hard for our motherland. 我们为祖国努力学习。 Would you please carry this for me? 请你替我提这个东西好吗? Do more exercise for the good of your health. 为了健康你要多运动。 【用法说明】(1) 有些后接双宾语的动词(如buy, choose, cook, fetch, find, get, order, prepare, sing, spare 等),当双宾语易位时,通常用for 来引出间接宾语,表示间接宾语为受益者。如:

介词for 的常见用法归纳

介词for 的常见用法归纳 贵州省黔东南州黎平县黎平一中英语组廖钟雁介词for 用法灵活并且搭配能力很强,是一个使用频率非常高的词,也是 高考必考的重要词汇,现将其常见用法归纳如下,供参考。 1.表时间、距离或数量等。 ①意为“在特定时间,定于,安排在约定时间”。如: The meeting is arranged for 9 o’clock. 会议安排在九点进行。 ②意为“持续达”,常于last、stay 、wait等持续性动词连用,表动作持续的时间,有时可以省略。如: He stayed for a long time. 他逗留了很久。 The meeting lasted (for)three hours. 会议持续了三小时。 ③意为“(距离或数量)计、达”。例如: He walked for two miles. 他走了两英里。 The shop sent me a bill for $100.商店给我送来了100美元的账单。 2. 表方向。意为“向、朝、开往、前往”。常与head、leave 、set off、start 等动词连用。如: Tomorrow Tom will leave for Beijing. 明天汤姆要去北京。 He put on his coat and headed for the door他穿上大衣向门口走去。 介词to也可表示方向,但往往与come、drive 、fly、get、go、lead、march、move、return、ride、travel、walk等动词连用。 3.表示理由或原因,意为“因为、由于”。常与thank、famous、reason 、sake 等词连用。如: Thank you for helping me with my English. 谢谢你帮我学习英语。 For several reasons, I’d rather not meet him. 由于种种原因,我宁可不见他。 The West Lake is famous for its beautiful scenery.西湖因美景而闻名。 4.表示目的,意为“为了、取、买”等。如: Let’s go for a walk. 我们出去散步吧。 I came here for my schoolbag.我来这儿取书包。 He plays the piano for pleasure. 他弹钢琴是为了消遣。 There is no need for anyone to know. 没必要让任何人知道。 5.表示动作的对象或接受者,意为“给、为、对于”。如: Let me pick it up for you. 让我为你捡起来。 Watching TV too much is bad for your health. 看电视太多有害于你的健康。 Here is a letter for you. 这儿有你的一封信。

ExcelVBA中for循环语句地用法

Excel VBA中for循环语句的用法 听语音 ? ?| ?浏览:21306 ?| ?更新:2015-05-30 16:57 ?| ?标签:excel ?1 ?2 ?3 ?4 ?5 ?6 分步阅读 for循环语句在VBA中扮演着比较重要的角色,为我们批量的处理表格数据提供了一个很好的途径,下面小编根据自己的一些亲身经验为大家分享一下Excel VBA中for循环语句的两个用法吧!

?office Excel软件 ?具备一定的VB基础更好 1. 1 我们常用的for循环语句有两种,一个是for ……next结构;一个是For each……next结构。这两种结构主要都是针对多数据循环遍历的时候用到的。 那么下面我将分别来介绍一下两种循环结构的具体用法,首先还是要打开VBA编辑器 2. 2 1.for……next结构 这个结构一般是这样的: for i=初始值to 结束值step 步长值 ……

next 具体解释一下,初始值指的是循环开始的值,结束值指的是循环结束的值,实质上就是i值得一个判断,如果i值在起始值和结束值之间,那么进入循环语句,然后i值每运行到next语句后会自动加一个步长值,直至i值超出了初始值到结束值这个围,循环才会结束。这里要说明一下”step 步长值“往往是省略掉的,省略掉的话,步长取默认值为1。下面将以一段小实例来具体说明这个结构的用法: 实例:在sheet1工作表中一次输出1到10这个数,显示在第一列中。 程序: Sub 循环语句() Dim i As Integer For i = 1 To 10 Cells(i, 1) = i Next End Sub

英语中for的用法讲解

英语中for的用法讲解 英语中for的用法讲解? for 1. prep. (1)因为,由于for this reason (2) 表示时间\距离长度;for three days;He ran for three miles. (3) 为了:What do you come here for? (4) 表示等价交换:He sold his house for 30,000 dollars. (5) 开往;前往We set off for London. (6) 代;替;代表Red is for danger. (7) 用于for + 名词或代词+ to + 不定式动词的名词短语中The bell rang for the lesson to begin. 2. conj 因为(表示推测或附加的原因,前后为并列句) It must have rained last night, for the ground is wet. Kuntta ( a prisoner ) knew day broke, for he heard the birds singing. 尽管for 的用法较多,但记住常用的几个就可以了。for的用法的确很多,可用作介词和连词,介词用法尤为丰富。以下详细列出了用法和句例,供你参考。for 1 preposition 1 used to say who is intended to get or use something, or where

something is intended to be used I've got a present for you. Someone left a message for Vicky. 2 in order to help someone or something I looked after the kids for them. Let me carry that bag for you. 3 used to say what the purpose of an object, action etc is for doing something a knife for cutting bread What did you do that for? 4 in order to have, do, get, or obtain something Are you waiting for the bus? the qualifications necessary for a career in broadcasting 5 used to say how long an action or situation continues for Bake the cake for 40 minutes. We had been talking for a good half hour. 6 used to talk about distance We walked for miles. Factories stretch for quite a way along the canal. 7 if something is arranged for a particular time, it is planned that it should happen then I've invited them for 9 o'clock.

forexample,suchas,like,namely的区别及用法

for example ,such as 和like 都可用来举例,但用法有所不同。 for example 作“例如”讲时,一般只以同类事物或人中的“一个”为例,作插入语,用逗号隔开,可置于句首、句中或句末。 For example ,air is invisible. 例如,空气是看不见的。 He,for example ,is a good student. 例如,他就是个好学生。 such as 也作为“例如”讲,用来列举同类人或事物中的几个例子。 Some of the European languages come from Latin ,such as French ,Italian and Spanish. 有些欧洲语言来源于拉丁语,例如,法语、意大利语和西班牙语。 Boys such as John and James are very friendly. 像约翰和詹姆斯这样的男孩都很友好。 like 也常用来表示举例,可与such as 互换。但such as 用于举例可以分开使用,此时不可与like 互换。Some warm-blooded animals ,like/such as the cat ,the dog or the wolf ,do not need to hibernate. 一些温血动物,像猫、狗和狼都不需要冬眠。 He has several such reference books as dictionaries and handbooks. 他有几本像字典、手册之类的参考书。 注意:使用such as 来举例子,只能举出其中的一部分,一般不能全部举出。若全部举出,要改用namely (意为“即”)。 He knows four languages ,namely Chinese ,English ,Russian and French. 他精通四门语言,即汉语、英语、俄语和法语。 自我测试根据句意,用for example ,such as 或like 填空。 1. Noise ,,is a kind of pollution. 2. I like drinks tea and soda. 3. ,my full name is James Allen Green. Green is my family name. 4. You can buy fruit here —oranges and bananas ,. 5. There are several people interested ,Mr Jones and Mr Simpson. 答案:example such as example example

for循环的使用和用法

简单的来说,++i 和i++,在单独使用时,就是i=i+1。 而a = ++i,相当于i=i+1; a = i; 而a = i++,相当于 a = i; i=i+1; 如果实在搞不明白++ --怎么回事,那也不是什么天塌下来的事。 因为a=++i完全可以写成i++; a=i。 a=i++完全可以写成a=i; i++。 而且,这也是一种好的程序风格:++ -- 语句如非特殊需要,请单独一行使用。假设i=1 如果执行a=i++ 完之后, a=1, i=2 如果执行a=++i 结果是, a=2, i=2 要分清楚++i,和i++的区别. i++是先执行当前命令,再执行递增. ++i是先递增,再执行命令 缺点: 对于数组,不能方便的访问下标值; 对于集合,与使用Interator相比,不能方便的删除集合中的内容(在内部也是调用Interator). 除了简单遍历并读取其中的内容外,不建议使用增强的for循环。 一、遍历数组 语法为: for (Type value : array) { expression value; } //以前我们这样写: void someFunction () {

int[] array = {1,2,5,8,9}; int total = 0; for (int i = 0; i < array.length; i++) { total += array[i]; } System.out.println(total); } //现在我们只需这样写(和以上写法是等价的): void someFunction () { int[] array = {1,2,5,8,9}; int total = 0; for (int n : array) { total += n; } System.out.println(total); } 这种写法的缺点: 显而易见,for/in(for each)循环自动控制一次遍历数组中的每一个元素,然后将它赋值给一个临时变量(如上述代码中的int n),然后在循环体中可直接对此临时变量进行操作。这种循环的缺点是: 1. 只能顺次遍历所有元素,无法实现较为复杂的循环,如在某些条件下需要后退到之前遍历过的某个元素;

1 such as,for example, like, that is用法说明

1 such as用来举例说明,通常放在被列举的事物的前面以及需要说明的事物的后面。 ①The farm grows various kinds of crops, such as wheat, corn, cotton and rice. 这个农场种植各种各样的庄稼,例如麦子,玉米,棉花和稻米。 Some of the European languages come from Latin,such as French,Italian and Spanish. 有些欧洲语言来源于拉丁语,例如,法语、意大利语和西班牙语。 Boys such as John and James are very friendly. 像约翰和詹姆斯这样的男孩都很友好。 2 for example作“例如”讲时,一般只以同类事物或人中的“一个”为例,作插入语,用逗号隔开,可置于句首、句中或句末。 For example,air is invisible. 例如,空气是看不见的。 He,for example,is a good student. 例如,他就是个好学生。 3 like是介词,意为“像”。也常用来表示举例,可与such as互换。但such as 用于举例可以分开使用,此时不可与like互换。 Some warm-blooded animals,like/such as the cat,the dog or the wolf,do not need to hibernate. 一些温血动物,像猫、狗和狼都不需要冬眠。 He has several such reference books as dictionaries and handbooks. 他有几本像字典、手册之类的参考书。 that is一般不用于列举,除非I have a book. That is an English book.并不在一个句子中,只是对前一句的补充说明。

最新英语连词for的用法总结

精品文档 精品文档英语连词for的用法总结 1、for在英语学习中,我们经常用到,for做连词时引导原因状语从句,主要表示理由,用于引导的分句对前面的话进行解释,起到补充说明的意思,常用逗号把它和前面的分句分开。例如: Humanity had better hope so, anyway,for the truth will soon out for the entire species.不管怎样,人类最好希望如此,因为这种真理将对整个人类显示出来。He must be in now, for the light in his room is on. 他现在一定在家,因为他房间的灯是亮着的。(灯亮其实并不能说明人一定在家)。注意:for表示原因时的四个“不能”for引导的从句不能位于它所解释的动词之前、for引导的从句不能位于not, but或任何连词之后、for引导的从句不能用于回答问题、for引导的从句不能单单用来复述已讲过的话,而必须包括新的内容。for 引导的从句不能直接说明某一特定动作发生的原因,而只能提供一些起帮助解释作用的附加说明。2、for的用法很广泛,for除了用作连词表示原因、理由之外,它还可以用作介词等: 1)表示“当作、作为”。如: I like some bread and milk for breakfast. 我喜欢把面包和牛奶作为早餐。What will we have for supper? 我们晚餐吃什么? 2)表示动作的对象或接受者,意为“给……”、“对…… (而言)”。如: Let me pick it up for you. 让我为你捡起来。 Watching TV too much is bad for your health. 看电视太多有害于你的健康。3)表示时间、距离,意为“计、达”。如: I usually do the running for an hour in the morning. 我早晨通常跑步一小时。We will stay there for two days. 我们将在那里逗留两天。 4)表示去向、目的,意为“向、往、取、买”等。如: Let's go for a walk. 我们出去散步吧。 I came here for my schoolbag.我来这儿取书包。 I paid twenty yuan for the dictionary. 我花了20元买这本词典。 5)表示所属关系或用途,意为“为、适于……的”。如: It's time for school. 到上学的时间了。 Here is a letter for you. 这儿有你的一封信。 6)表示“支持、赞成”。如: Are you for this plan or against it? 你是支持还是反对这个计划?

相关主题