go语言for的用法,go和for用法
go for怎么用
go for 的意思有很多,下面列举:
成都创新互联主营志丹网站建设的网络公司,主营网站建设方案,app开发定制,志丹h5小程序制作搭建,志丹网站营销推广欢迎志丹等地区企业咨询
1.leave a place to perform an activity离开(某地)去干
例:I'd like to go for a walk;will you come with me?我想出去散散步,你能跟我一道去吗?
例:Shall I go for a doctor?要不要我去请一位医生来?
2.be sold for卖
例:There were perfectly good coats going for $20!有一些很好的外套只卖20美元。
例:“How much did the house go for?”“It went for far less than I expected.”“那所房子卖了多少钱?”“卖价比我原来想象的少得多。”
3.attack,either physically or by words攻击(肉体上或口头上)
例:The newspapers have really gone for Tom's new book in a big way!报纸果真大张旗鼓地攻击起汤姆的那本新书来。
例:The taller of the two men had scarcely said a word when the other put up his fists and went for him.那个身材高些的男人刚刚说完一句话,另一个人就挥拳向他打去。
例:She really went for him;I've never seen her so badtempered.她真地对他破口大骂起来了,我还从没见过她发这么大的脾气。
4.choose选择
例:I thought I'd go for question three;it looks easy.我想选第3题,它似乎容易些。
5.admire;like;pursue喜欢;想得到
例:She is not the type of girl that John goes for.她不是约翰要追求的那种女孩。
例:She really goes for miniskirts.她确实喜欢超短裙。
例:Dark men often go for blondes.黑肤色的男人往往倾心于金发碧眼的女郎。
6.intend to become;aim at想成为;以…为目的
例:He is going for an engineer.他想当一名工程师。
例:Ken's going for the tennis cham pionship this year.肯在为今年夺取网球冠军而奋斗。
7.apply to;be true of适用于;对…适用;适合于
例:Listen carefully,because this goes for you all.大家认真听,这对你们都适用。
例:Your sister is a selfish girl,and that goes for you,too.你姐姐是一个自私的女孩,你也一样。
例:What I've said to him goes for all of you as well.我对他说的那番话,对你们大家都适用。
8.give support to;give approval to支持;赞成
例:In the election,the majority of votes went for him.在选举中,大多数选票都赞成他。
例:I can go for no such proposal as this.我无法支持这样一个建议。
9.be taken as;be regarded as被看作;被认为是;起作用
例:All his work went for nothing.他的一切工作被看成是毫无价值的。
例:I don't think your efforts will go for much.我想你的努力不会有多大作用。
例:His words don't go for much.We don't trust him.他的话无足轻重,我们不信任他。
Golang入门到项目实战 | golang for循环语句
go语言中的for循环,只有for关键字,去除了像其他语言中的while和do while.
注意:for表达式不用加括号
循环输出1到10
运行结果
初始条件,可以写到外面
运行结果
初始条件和结束条件都可以省略
运行结果
这种情况类似其他语言中的while循环
永真循环
运行结果
for循环可以通过break、goto、return、panic语句强制退出循环。
for的具体用法归纳
for的用法主要有表示支持、目的、时间、原因、作为、用途、动作的对象等。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、(表交换)换,以……作交换。如:
He gave her some magazines for her dictionary. 他用几本杂志换她的字典。
She bought the skirt for $50. 她花了50美元买这条裙子。
9、(表让步)尽管,虽然。如:
For all his money, he’s a very lonely man. 他虽然富有,可是非常寂寞。
For all his efforts, he didn’t succeed. 尽管他做了很多努力,却仍然没有成功。
I love you, for all your shortcomings. 尽管你有很多缺点,但我仍然爱你。
10、用于一些固定搭配中。如:
Who are you waiting for? 你在等谁?
For example, Mr Green is a kind teacher. 比如,格林先生是一位心地善良的老师。
be in for it/be for it 惹上麻烦、势必倒霉;受罚。
for all 尽管,表让步。
go for什么意思
go for的中文翻译是去找、拥护和努力获取的意思,有去争取的意思,具体分析如下:
go for
英 [ɡəu fɔ:] 美 [ɡo fɔr]
去找某人,想得到…,争取攻击,抨击,喜欢
去(做某事),去拿(某物),迷上,与(人或事)有关,对…同样适宜
相关短语:
1、go on for 接近 ; 时刻
2、go bail for 担保 ; 为作保 ; 为…做保释人
3、go home for holiday 回家度假
4、go off for 出发去
5、go in for farming 耕作
6、go out for a 过时 ; 走出去 ; 熄灭 ; 出去
扩展资料
相关例句:
1、Where did you go for your hols?
你去哪里度假了?
2、I thought we might go for a drive on Sunday.
我想星期天我们可以开车去兜兜风。
3、It is the 'in' place to go for a quick drink after work.
那是一个“很受欢迎”的地方,工作之后可以去那儿喝上几杯。
4、Even if it should rain tomorrow, they will go for an outing.
纵使明天下雨,他们也要去游览。
5、You might still want to go for an X-ray, however, just to be on the safe side.
不过,为稳妥起见,你可能还想要照一个X光。
for的四个用法
其实用法不止四个用法,不过手机有字数限制,我就附上四个用法吧,如下:
用法1:(表目的)为了。如:
They went out for a walk. 他们出去散步了。
【用法说明】在通常情况下,英语不用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? 你想要我什么?
【用法说明】(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. 她为她女儿做了件连衣裙。
注意,类似下面这样的句子必须用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.
用法3:(表用途)用于,用来。如:
Knives are used for cutting things. 小刀是用来切东西的。
用法4:为得到,为拿到,为取得。如:
He went home for his book. 他回家拿书。
“go for”怎么用?
一、go for:
英 [ɡəʊ fɔː] 美 [ɡoʊ fɔːr]
去找; 努力获取; 被认为; 主张; 拥护; 攻击
常用在句子当中做谓语,后面通常跟sth
一、例句:
He left his home to look for employment.
他离家去找职业。
She rummaged about in the drawer for a pencil.
她在抽屉里翻来翻去找铅笔。
If the sound seems okay, go for dynamics and effects.
如果声音好,努力获取动态和效果。
He is always regarded as good for nothing.
他被认为是个一事无成的人。
For a long time the earth is thought of as flat.
过去很长时间地球被认为是扁平的。
He urged that they go to New York.
他极力主张他们去纽约。
Such opinions pave the way for social change.
这种主张为社会变革铺路。
The newspaper is whooping for leftist candidates.
这家报纸热烈拥护左派候选人。
We stand up for the cause of liberty and justice.
我们拥护自由和正义。
The speaker went for his opponent.
演讲者攻击对手。
当前题目:go语言for的用法,go和for用法
分享网址:http://ybzwz.com/article/hdipeg.html