token — 用于 Python 剖析树的常量
token
keyword
源代码: Lib/keyword.py
This module allows a Python program to determine if a string is a keyword or soft keyword .
返回 True if s is a Python keyword .
True
Sequence containing all the keywords defined for the interpreter. If any keywords are defined to only be active when particular __future__ statements are in effect, these will be included as well.
__future__
返回 True if s is a Python soft keyword .
Added in version 3.9.
Sequence containing all the soft keywords defined for the interpreter. If any soft keywords are defined to only be active when particular __future__ statements are in effect, these will be included as well.
tokenize — 用于 Python 源代码的 Tokenizer
tokenize
键入搜索术语或模块、类、函数名称。