例如,如何表達一個函式的明智引數是 int 或兩個 int ? type(args) 提供了 ... 1 i = args[0] return i # ok print(foo((1,))) print(foo((1, 2))) # mypy does not ...
確定! 回上一頁