📜  python输入可选 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:34.345000             🧑  作者: Mango

代码示例1
from typing import Optional

class Example:
  required_field_1: str
  required_field_2: int
  optional_field: Optional[str]