• 转到主导航栏
  • 转到内容
  • 转到底部
listcomp Pro listcomp Pro 温故而知新
  • Posts
  • Categories
  • Tags
  • About

    Python: for-else with break

    September 28, 2017 少于 1 分钟阅读

    Python Tips: 19. For - Else:

    The else clause executes when the loop completes normally. This means that the loop did not encounter any break.

    In addition, if an exception is raised in for without handling, else after this for won’t execute.

    分类: Python

    更新时间: September 28, 2017

    分享

    X Facebook LinkedIn Bluesky
    上一页 下一页

    留下评论

    猜您还喜欢

    Zig: the Hash Map Types Maze

    November 1, 2025 3 分钟阅读

    1. Zig’s HashMap Hierarchy

    Zig: defer / errdefer

    October 29, 2025 少于 1 分钟阅读

    这俩 keywords 在 Zig Language Reference 中的解释着实不太好,我这里补充一下。

    Bootstrapping in Compiler Design / Self-Hosting Compilers

    October 16, 2025 3 分钟阅读

    1. Bootstrap 释义, again

    Left recursion is not a problem for LR parsing

    October 10, 2025 少于 1 分钟阅读

    See discussion here: Left recursion in LR(1) parsers. Note that templatetypedef wrote:

    • 关注:
    • GitHub
    • Feed
    © 2025 listcomp Pro. 技术来自于 Jekyll & Minimal Mistakes.