第23集 while循环

64 阅读1分钟
  • while 条件:
    • 代码块
  • 只要while条件成立代码就会一直执行。
  • while-else与for-else一样,只要不遇到break就不会中断