我最近开始使用mypy。有没有办法可以在mypy中检查Dic键的类型。 对于ex)。 from __future__ import annotations
from typing import List, Set, Dict, Tuple, Optional
import sys
adj_list: Dict[int,List[int]] = {}
if "x" not in adj_list.keys():
print('Not found') 上面的代码没有显示任何mypy警告。在下面的代码中,我将string对象与只能包含int键的D
我正在使用API来接收评论。审查的内容包括原文和译文:
Tolles Team (Translated by Google) great team
有没有办法移除翻译的版本?Google改变了内容的输出,到目前为止我们收到了不同的内容。
(Translated by Google) ... (Original) ...
... (Translated by Google) ...