list 是内置的 list 类。你可以直接用它来注解。 typing.List is the type hint for lists, 可下标为, e.g.: foo: List[str] = []. 这允许比 list 更精细的类型提示, ...
確定! 回上一頁