pydantic初探
摘要:
数据校验的的专业工作请看pydantic 1 from pydantic import BaseModel, conint, ValidationError 2 3 4 class NumVerify(BaseModel): 5 # 限定范围 6 expected_number: conint(ge 阅读全文
posted @ 2022-11-16 22:41 默玖 阅读(83) 评论(0) 推荐(0)
posted @ 2022-11-16 22:41 默玖 阅读(83) 评论(0) 推荐(0)