Mypy 具有强大且易于使用的类型系统,具有很多优秀的… ... from typing import Callable def arbitrary_call(f: Callable[..., int]) -> int: return f('x') + f(y=2) ...
確定! 回上一頁