Python 3.9 以下正確的方式是使用typing 模組的List 進行表達: from typing import List def test(x: ... Python 3.10 之後,可以用 | 取代 typing.
確定! 回上一頁