If the controlling expression of a while loop is a constant because the loop will exit in the middle, consider replacing the while loop with a for loop.
英
美
- 如果while循环的控制表达式因该循环中途退出而为一个常数,则应考虑将while循环替换为for循环。