- Sort Score
- Result 10 results
- Languages All
Results 371 - 380 of 873 for Python (0.1 sec)
-
docs/pt/docs/advanced/additional-responses.md
Para estes casos, você pode utilizar a técnica do Python de "desempacotamento" de um `dict` utilizando `**dict_to_unpack`: ```Python old_dict = { "old key": "old value", "second old key": "second old value", } new_dict = {**old_dict, "new key": "new value"} ``` Aqui, o `new_dict` terá todos os pares de chave-valor do `old_dict` mais o novo par de chave-valor: ```Python { "old key": "old value",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.3K bytes - Viewed (0) -
docs/em/docs/tutorial/security/first-steps.md
## ✍ `main.py` 📁 🖼 📁 `main.py`: ```Python {!../../docs_src/security/tutorial001.py!} ``` ## 🏃 ⚫️ /// info 🥇 ❎ <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. 🤶 Ⓜ. `pip install python-multipart`. 👉 ↩️ **Oauth2️⃣** ⚙️ "📨 📊" 📨 `username` & `password`. /// 🏃 🖼 ⏮️:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.8K bytes - Viewed (0) -
docs/pt/docs/tutorial/response-status-code.md
/// O parâmetro `status_code` recebe um número com o código de status HTTP. /// info | "Informação" `status_code` também pode receber um `IntEnum`, como o do Python <a href="https://docs.python.org/3/library/http.html#http.HTTPStatus" class="external-link" target="_blank">`http.HTTPStatus`</a>. /// Dessa forma: * Este código de status será retornado na resposta.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 4.3K bytes - Viewed (0) -
docs/em/docs/advanced/additional-responses.md
📚 💼, 👆 💪 ⚙️ 🐍 ⚒ "🏗" `dict` ⏮️ `**dict_to_unpack`: ```Python old_dict = { "old key": "old value", "second old key": "second old value", } new_dict = {**old_dict, "new key": "new value"} ``` 📥, `new_dict` 🔜 🔌 🌐 🔑-💲 👫 ⚪️➡️ `old_dict` ➕ 🆕 🔑-💲 👫: ```Python { "old key": "old value", "second old key": "second old value",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/fr/docs/advanced/additional-responses.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.6K bytes - Viewed (0) -
docs/ja/docs/tutorial/query-params.md
パスパラメータではない関数パラメータを宣言すると、それらは自動的に "クエリ" パラメータとして解釈されます。 ```Python hl_lines="9" {!../../docs_src/query_params/tutorial001.py!} ``` クエリはURL内で `?` の後に続くキーとバリューの組で、 `&` で区切られています。 例えば、以下の様なURL内で: ``` http://127.0.0.1:8000/items/?skip=0&limit=10 ``` ...クエリパラメータは: * `skip`: 値は `0` * `limit`: 値は `10` これらはURLの一部なので、「自然に」文字列になります。 しかしPythonの型を宣言すると (上記の例では `int` として)、その型に変換されバリデーションが行われます。
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.5K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-params.md
`str`을 상속함으로써 API 문서는 값이 `string` 형이어야 하는 것을 알게 되고 이는 문서에 제대로 표시됩니다. 가능한 값들에 해당하는 고정된 값의 클래스 어트리뷰트들을 만듭니다: ```Python hl_lines="1 6-9" {!../../docs_src/path_params/tutorial005.py!} ``` /// info | "정보" <a href="https://docs.python.org/3/library/enum.html" class="external-link" target="_blank">열거형(또는 enums)</a>은 파이썬 버전 3.4 이후로 사용 가능합니다. /// /// tip | "팁"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 9.8K bytes - Viewed (0) -
docs/zh/docs/advanced/additional-responses.md
以及一个状态码为 `200` 的响应,它使用您的 `response_model` ,但包含自定义的 `example` : ```Python hl_lines="20-31" {!../../docs_src/additional_responses/tutorial003.py!} ``` 所有这些都将被合并并包含在您的OpenAPI中,并在API文档中显示: ## 联合预定义响应和自定义响应 您可能希望有一些应用于许多路径操作的预定义响应,但是你想将不同的路径和自定义的相应组合在一块。 对于这些情况,你可以使用Python的技术,将 `dict` 与 `**dict_to_unpack` 解包: ```Python old_dict = { "old key": "old value", "second old key": "second old value",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.2K bytes - Viewed (0) -
docs/ko/docs/tutorial/dependencies/global-dependencies.md
그런 경우에, 애플리케이션의 모든 *경로 작동*에 적용될 것입니다: //// tab | Python 3.9+ ```Python hl_lines="16" {!> ../../docs_src/dependencies/tutorial012_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="16" {!> ../../docs_src/dependencies/tutorial012_an.py!} ``` //// //// tab | Python 3.8 Annotated가 없는 경우 /// tip | "팁" 가능하다면 `Annotated`가 달린 버전을 권장합니다. ///
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 1.6K bytes - Viewed (0) -
docs/de/docs/advanced/sub-applications.md
Erstellen Sie zunächst die Hauptanwendung **FastAPI** und deren *Pfadoperationen*: ```Python hl_lines="3 6-8" {!../../docs_src/sub_applications/tutorial001.py!} ``` ### Unteranwendung Erstellen Sie dann Ihre Unteranwendung und deren *Pfadoperationen*. Diese Unteranwendung ist nur eine weitere Standard-FastAPI-Anwendung, aber diese wird „gemountet“: ```Python hl_lines="11 14-16" {!../../docs_src/sub_applications/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.3K bytes - Viewed (0)