Home  >  Q&A  >  body text

python模块 - 心血来潮,想到一些python的解析库,想问问这些的原理是什么?

PHPzPHPz2710 days ago343

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-17 12:59:57

    I remember that the book Python Basic Programming mentioned how to write a text parser.

    Python's Lib comes with HTML parsing. HTMLParserI think it will be easier to read this.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 12:59:57

    Parsing these formats is almost the same as grammatical analysis of compilation principles.

    First make the token, and then enter the state machine to generate a parse tree or something.

    reply
    0
  • Cancelreply