句子示例
| In Python, a while loop repeats as long as the condition remains true. | 在 Python 中,只要条件为真,while 循环就会重复执行。 |
| The programmer used a while loop to read lines from the file until the end. | 程序员使用 while 循环读取文件中的行,直到文件末尾。 |
| Be careful not to create an infinite while loop that never exits. | 注意不要创建永不退出的无限 while 循环。 |
| A while loop is suitable when the number of iterations is not known beforehand. | 当迭代次数事先未知时,适合使用 while 循环。 |
| The while loop condition is evaluated before each iteration. | while 循环的条件在每次迭代之前进行求值。 |