Python 3.7 and above. from enum import Enum from pydantic import BaseModel, Field class FooBar(BaseModel): count: int size: float = None class Gender(str, ...
確定! 回上一頁