while
while是什么意思,
while怎么讀
語(yǔ)音:
英音
[wa?l]
美音 [hwa?l, wa?l]
conj. 在…期間;與…同時(shí);雖然;而
n. (一段)時(shí)間
vt. 消磨,打發(fā)(時(shí)間);(愉快而懶散地)度過(guò)(時(shí)間)(常與 away 連用)
在編程中,'while'是一個(gè)控制流關(guān)鍵詞,通常用于循環(huán)結(jié)構(gòu)。它表示當(dāng)某個(gè)條件為真(true)時(shí),執(zhí)行一組語(yǔ)句,然后重復(fù)執(zhí)行。這個(gè)循環(huán)會(huì)一直執(zhí)行,直到條件變?yōu)榧伲╢alse)。在許多編程語(yǔ)言中,如Python,'while'循環(huán)通常與'break'和'continue'語(yǔ)句一起使用,以控制循環(huán)的執(zhí)行流程。
復(fù)數(shù): whiles
第三人稱單數(shù): whiles
過(guò)去式: whiled
過(guò)去分詞: whiled
現(xiàn)在分詞: whiling
while 在期間
來(lái)自古英語(yǔ)hwil,一段時(shí)間,來(lái)自PIE*kweie,休息,安靜,詞源同quiet,quit.
用作連詞(conj.)
- I lived in a hostel while I was a student.
我求學(xué)期間住在青年招待所里。 - While Mary was writing a letter, the children were playing outside.
瑪麗寫信時(shí),孩子們?cè)谕饷嫱嫠!?/li> - In a word, while the prospects are bright, the road has twists and turns.
總之,雖然前途是光明的,但是道路是曲折的。 - While I admit that there are problems, I don't agree that they cannot be solved.
盡管我承認(rèn)有問(wèn)題存在
用作名詞(n.)
- I haven't seen him for a long while.
我已經(jīng)很久沒見到他了。 - She worked in a bank for a while before studying law.
她學(xué)法律之前在銀行工作過(guò)一段時(shí)間。 - Before I eat dinner,I read newspaper for a while
在吃晚飯以前,我會(huì)讀一會(huì)兒報(bào)紙
用作動(dòng)詞(v.)
- A detective story helps to while away the time.
偵探小說(shuō)有助于打發(fā)時(shí)間。 - I didn't know how to while away my tedium.
我不知道如何度過(guò)乏味的時(shí)刻。
1. while doing sth:在某事的同時(shí)進(jìn)行
2. while (on) doing sth:在(做某事)的過(guò)程中進(jìn)行
3. while (in) doing sth:在(做某事)的過(guò)程中
4. while sb is doing sth:當(dāng)某人正在做某事的時(shí)候
5. while sb were doing sth:當(dāng)某人正在做某事的時(shí)候(過(guò)去進(jìn)行時(shí)態(tài))
6. while it is raining/snowing/dark/hot/etc:當(dāng)正在下雨/下雪/天黑/天氣炎熱等的時(shí)候
7. while sb is/were+形容詞/副詞:當(dāng)某人處于某種狀態(tài)或正在做某事
這些短語(yǔ)可以幫助你在英語(yǔ)中更好地表達(dá)時(shí)間關(guān)系和情境。請(qǐng)注意,在使用這些短語(yǔ)時(shí),要根據(jù)語(yǔ)境和語(yǔ)法規(guī)則來(lái)選擇適當(dāng)?shù)挠梅ā?/p>
以上是貝語(yǔ)網(wǎng)校http://www.hfjinjia.cn小編為您整理的while單詞相關(guān)內(nèi)容。