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ì)一直進(jìn)行,直到條件變?yōu)榧伲╢alse)。在許多編程語(yǔ)言中,如Python、Java和C++等,'while'循環(huán)通常與'do...while'結(jié)構(gòu)一起使用,以確保在循環(huán)開(kāi)始之前執(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.
瑪麗寫(xiě)信時(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)很久沒(méi)見(jiàn)到他了。 - 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/performing/working...:在...的時(shí)候
2. While I was/am...:當(dāng)我...的時(shí)候
3. While it is/was...that...:雖然...
4. While it may seem/look like...,but...:雖然看起來(lái)/看上去是...,但是...
5. While it is true that...,there is also/another is...:雖然...是真的,但是也有/還有...
這些短語(yǔ)可以幫助你在英語(yǔ)表達(dá)中更自然地使用"while"這個(gè)詞,并傳達(dá)你想要表達(dá)的意思。
以上是貝語(yǔ)網(wǎng)校http://www.hfjinjia.cn小編為您整理的while單詞相關(guān)內(nèi)容。