与 False 的比较应该是 'if cond is False:' 或 'if not cond:

comparison to False should be 'if cond is False:' or 'if not cond:

while line_number < dictionary_elements_number and validation_bool == False:

当我 运行 通过 pep8 E712 comparison to False should be 'if cond is False:' or 'if not cond:' 时出现此错误 是不是有点奇怪?

来自 PEP8 文档:

Comparisons to singletons like None should always be done with is or is not, never the equality operators.

我猜 False 也是 singleton.