代码之家  ›  专栏  ›  技术社区  ›  Paul

Python中的字符串匹配

  •  3
  • Paul  · 技术社区  · 15 年前

    2 回复  |  直到 15 年前
        1
  •  9
  •   Alex Martelli    15 年前

    the sources

    快速搜索/计数实现, horspool,还有几个铃铛和 背景,见: http://effbot.org/zone/stringlib.htm

    这个 essay 这个问题真的很值得一读!

        2
  •  1
  •   BlueRaja - Danny Pflughoeft    15 年前

    我猜你说的是CPython。在这种情况下,你总是可以 check the source (见 fastsearch.h