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循环。
今日热词
目录 附录 查词历史