- Sort Score
- Result 10 results
- Languages All
Results 351 - 360 of 873 for Python3 (0.11 sec)
-
docs/ja/docs/tutorial/body.md
/// ## Pydanticの `BaseModel` をインポート ます初めに、 `pydantic` から `BaseModel` をインポートする必要があります: ```Python hl_lines="2" {!../../docs_src/body/tutorial001.py!} ``` ## データモデルの作成 そして、`BaseModel` を継承したクラスとしてデータモデルを宣言します。 すべての属性にpython標準の型を使用します: ```Python hl_lines="5-9" {!../../docs_src/body/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.9K bytes - Viewed (0) -
docs/em/docs/advanced/dataclasses.md
# ⚙️ 🎻 FastAPI 🏗 🔛 🔝 **Pydantic**, & 👤 ✔️ 🌏 👆 ❔ ⚙️ Pydantic 🏷 📣 📨 & 📨. ✋️ FastAPI 🐕🦺 ⚙️ <a href="https://docs.python.org/3/library/dataclasses.html" class="external-link" target="_blank">`dataclasses`</a> 🎏 🌌: ```Python hl_lines="1 7-12 19-20" {!../../docs_src/dataclasses/tutorial001.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/bigger-applications.md
``` . ├── app # "app" é um pacote Python │ ├── __init__.py # este arquivo torna "app" um "pacote Python" │ ├── main.py # "main" módulo, e.g. import app.main │ ├── dependencies.py # "dependencies" módulo, e.g. import app.dependencies │ └── routers # "routers" é um "subpacote Python" │ │ ├── __init__.py # torna "routers" um "subpacote Python"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.6K bytes - Viewed (0) -
docs/ja/docs/tutorial/request-forms.md
フォームを使うためには、まず<a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>をインストールします。 たとえば、`pip install python-multipart`のように。 /// ## `Form`のインポート `fastapi`から`Form`をインポートします: ```Python hl_lines="1" {!../../docs_src/request_forms/tutorial001.py!} ``` ## `Form`のパラメータの定義 `Body`や`Query`の場合と同じようにフォームパラメータを作成します: ```Python hl_lines="7"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.3K bytes - Viewed (0) -
docs/vi/docs/tutorial/first-steps.md
## Tóm lại, từng bước một ### Bước 1: import `FastAPI` ```Python hl_lines="1" {!../../docs_src/first_steps/tutorial001.py!} ``` `FastAPI` là một Python class cung cấp tất cả chức năng cho API của bạn. /// note | "Chi tiết kĩ thuật" `FastAPI` là một class kế thừa trực tiếp `Starlette`.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.1K bytes - Viewed (0) -
docs/zh/docs/tutorial/response-model.md
* `@app.put()` * `@app.delete()` * 等等。 //// tab | Python 3.10+ ```Python hl_lines="17 22 24-27" {!> ../../docs_src/response_model/tutorial001_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="17 22 24-27" {!> ../../docs_src/response_model/tutorial001_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="17 22 24-27"
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/ko/docs/tutorial/dependencies/classes-as-dependencies.md
따라서, 만약 당신이 `something`(함수가 아닐 수도 있음) 객체를 가지고 있고, ```Python something() ``` 또는 ```Python something(some_argument, some_keyword_argument="foo") ``` 상기와 같은 방식으로 "호출(실행)" 할 수 있다면 "호출 가능"이 됩니다. ## 의존성으로서의 클래스 파이썬 클래스의 인스턴스를 생성하기 위해 사용하는 것과 동일한 문법을 사용한다는 걸 알 수 있습니다. 예를 들어: ```Python class Cat: def __init__(self, name: str): self.name = name
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.9K bytes - Viewed (0) -
docs/uk/docs/tutorial/first-steps.md
```Python hl_lines="7" {!../../docs_src/first_steps/tutorial001.py!} ``` Це звичайна функція Python. FastAPI викликатиме її щоразу, коли отримає запит до URL із шляхом "/", використовуючи операцію `GET`. У даному випадку це асинхронна функція. --- Ви також можете визначити її як звичайну функцію замість `async def`: ```Python hl_lines="7"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 15.6K bytes - Viewed (0) -
docs/en/docs/advanced/testing-dependencies.md
//// tab | Python 3.10+ ```Python hl_lines="26-27 30" {!> ../../docs_src/dependency_testing/tutorial001_an_py310.py!} ``` //// //// tab | Python 3.9+ ```Python hl_lines="28-29 32" {!> ../../docs_src/dependency_testing/tutorial001_an_py39.py!} ``` //// //// tab | Python 3.8+ ```Python hl_lines="29-30 33"
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 2.9K bytes - Viewed (0) -
docs/ja/docs/index.md
### まとめ 要約すると、関数のパラメータとして、パラメータやボディ などの型を**一度だけ**宣言します。 標準的な最新の Python の型を使っています。 新しい構文や特定のライブラリのメソッドやクラスなどを覚える必要はありません。 単なる標準的な**3.8 以降の Python**です。 例えば、`int`の場合: ```Python item_id: int ``` または、より複雑な`Item`モデルの場合: ```Python item: Item ``` ...そして、この一度の宣言で、以下のようになります: - 以下を含むエディタサポート: - 補完 - タイプチェック
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 21K bytes - Viewed (0)