Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for tutorial001 (0.06 sec)

  1. docs/ru/docs/python-types.md

    ```Python hl_lines="1"
    {!../../docs_src/python_types/tutorial003.py!}
    ```
    
    Поскольку редактор знает типы переменных, вы получаете не только дополнение, но и проверки ошибок:
    
    <img src="/img/python-types/image04.png">
    
    Теперь вы знаете, что вам нужно исправить, преобразовав `age` в строку с `str(age)`:
    
    ```Python hl_lines="2"
    {!../../docs_src/python_types/tutorial004.py!}
    ```
    
    ## Объявление типов
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/first-steps.md

    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Это обычная Python функция.
    
    **FastAPI** будет вызывать её каждый раз при получении `GET` запроса к URL "`/`".
    
    В данном случае это асинхронная функция.
    
    ---
    
    Вы также можете определить ее как обычную функцию вместо `async def`:
    
    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial003.py!}
    ```
    
    /// note | "Технические детали"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. docs/es/docs/tutorial/first-steps.md

    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial003.py!}
    ```
    
    /// note | Nota
    
    Si no sabes la diferencia, revisa el [Async: *"¿Tienes prisa?"*](../async.md#tienes-prisa){.internal-link target=_blank}.
    
    ///
    
    ### Paso 5: devuelve el contenido
    
    ```Python hl_lines="8"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. docs/fr/docs/tutorial/first-steps.md

    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial003.py!}
    ```
    
    /// note
    
    Si vous ne connaissez pas la différence, allez voir la section [Concurrence : *"Vous êtes pressés ?"*](../async.md#vous-etes-presses){.internal-link target=_blank}.
    
    ///
    
    ### Étape 5 : retourner le contenu
    
    ```Python hl_lines="8"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/first-steps.md

    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    이것은 파이썬 함수입니다.
    
    URL "`/`"에 대한 `GET` 작동을 사용하는 요청을 받을 때마다 **FastAPI**에 의해 호출됩니다.
    
    위의 예시에서 이 함수는 `async`(비동기) 함수입니다.
    
    ---
    
    `async def`을 이용하는 대신 일반 함수로 정의할 수 있습니다:
    
    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial003.py!}
    ```
    
    /// note | "참고"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/body-nested-models.md

    ```Python hl_lines="12"
    {!> ../../docs_src/body_nested_models/tutorial001_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="14"
    {!> ../../docs_src/body_nested_models/tutorial001.py!}
    ```
    
    ////
    
    Das bewirkt, dass `tags` eine Liste ist, wenngleich es nichts über den Typ der Elemente der Liste aussagt.
    
    ## Listen mit Typ-Parametern als Felder
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. docs/de/docs/python-types.md

    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial006.py!}
    ```
    
    Deklarieren Sie die Variable mit der gleichen Doppelpunkt-Syntax (`:`).
    
    Als Typ nehmen Sie das `List`, das Sie von `typing` importiert haben.
    
    Da die Liste ein Typ ist, welcher innere Typen enthält, werden diese von eckigen Klammern umfasst:
    
    ```Python hl_lines="4"
    {!> ../../docs_src/python_types/tutorial006.py!}
    ```
    
    ////
    
    /// tip | "Tipp"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/body.md

    ```Python hl_lines="4"
    {!../../docs_src/body/tutorial001.py!}
    ```
    
    ## Создание вашей собственной модели
    
    После этого вы описываете вашу модель данных как класс, наследующий от `BaseModel`.
    
    Используйте аннотации типов Python для всех атрибутов:
    
    ```Python hl_lines="7-11"
    {!../../docs_src/body/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. docs/tr/docs/tutorial/first-steps.md

    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial003.py!}
    ```
    
    /// note | "Not"
    
    Eğer farkı bilmiyorsanız, [Async: *"Aceleniz mi var?"*](../async.md#in-a-hurry){.internal-link target=_blank} sayfasını kontrol edebilirsiniz.
    
    ///
    
    ### Adım 5: İçeriği Geri Döndürün
    
    ```Python hl_lines="8"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. docs/vi/docs/tutorial/first-steps.md

    ```Python hl_lines="7"
    {!../../docs_src/first_steps/tutorial003.py!}
    ```
    
    /// note
    
    Nếu bạn không biết sự khác nhau, kiểm tra [Async: *"Trong khi vội vàng?"*](../async.md#in-a-hurry){.internal-link target=_blank}.
    
    ///
    
    ### Bước 5: Nội dung trả về
    
    ```Python hl_lines="8"
    {!../../docs_src/first_steps/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top