Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

控制流

  • 条件语句使用 if / elif / else 进行分支控制。
  • 循环包括 for 与 while,for 适合遍历可迭代对象。
  • break、continue、else 可与循环配合使用。