- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Raines (0.13 sec)
-
docs/zh/docs/tutorial/query-params-str-validations.md
# 查询参数和字符串校验 **FastAPI** 允许你为参数声明额外的信息和校验。 让我们以下面的应用程序为例: === "Python 3.10+" ```Python hl_lines="7" {!> ../../../docs_src/query_params_str_validations/tutorial001_py310.py!} ``` === "Python 3.8+" ```Python hl_lines="9" {!> ../../../docs_src/query_params_str_validations/tutorial001.py!} ``` 查询参数 `q` 的类型为 `str`,默认值为 `None`,因此它是可选的。 ## 额外的校验
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.2K bytes - Viewed (0)