2019-07-05から1日間の記事一覧
typing.NamedTuple: 型がついているcollection.namedtupleを定義できる 書き方 from typing import NamedTuple, Optional class Table(NamedTuple): name: str alias: str default値の設定 デフォルト値の設定されていないフィールドの後ろのみ書ける from t…
typing.NamedTuple: 型がついているcollection.namedtupleを定義できる 書き方 from typing import NamedTuple, Optional class Table(NamedTuple): name: str alias: str default値の設定 デフォルト値の設定されていないフィールドの後ろのみ書ける from t…