Python - catch only specific tokens from file and ignore one line and multi line comments and new-lines

前端 未结 0 1899
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 20:13

Given a file, I have to tokenize it (so to speak) - I have to retrieve only the following 5 types of tokens:

  1. identifiers - A sequence of letter
相关标签:
回答
  • 消灭零回复
提交回复
热议问题