🌐 Update translations for zh (update-outdated) (#15177)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com>
This commit is contained in:
Sebastián Ramírez
2026-03-20 18:06:37 +01:00
committed by GitHub
parent 453988f359
commit 12bbd9453f
98 changed files with 777 additions and 920 deletions

View File

@@ -4,9 +4,9 @@
/// info
要使用表单,首先安装 <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>
要使用表单,首先安装 [`python-multipart`](https://github.com/Kludex/python-multipart)
请先创建并激活一个[虚拟环境](../virtual-environments.md){.internal-link target=_blank},然后再进行安装,例如:
请先创建并激活一个[虚拟环境](../virtual-environments.md),然后再进行安装,例如:
```console
$ pip install python-multipart
@@ -28,7 +28,7 @@ $ pip install python-multipart
例如,在 OAuth2 规范的一种使用方式(称为“密码流”)中,要求将 `username``password` 作为表单字段发送。
<dfn title="规范">规范</dfn> 要求这些字段必须精确命名为 `username``password`,并且作为表单字段发送,而不是 JSON。
<dfn title="规范">规范</dfn>要求这些字段必须精确命名为 `username``password`,并且作为表单字段发送,而不是 JSON。
使用 `Form` 可以像使用 `Body`(以及 `Query``Path``Cookie`)一样声明相同的配置,包括校验、示例、别名(例如将 `username` 写成 `user-name`)等。
@@ -56,7 +56,7 @@ HTML 表单(`<form></form>`)向服务器发送数据时通常会对数据使
但当表单包含文件时,会编码为 `multipart/form-data`。你将在下一章阅读如何处理文件。
如果你想了解更多关于这些编码和表单字段的信息,请参阅 <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><abbr title="Mozilla Developer Network - Mozilla 开发者网络">MDN</abbr> Web 文档的 <code>POST</code></a>
如果你想了解更多关于这些编码和表单字段的信息,请参阅 [<abbr title="Mozilla Developer Network - Mozilla 开发者网络">MDN</abbr> Web 文档的 `POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST)
///