Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 681 for Python3 (0.09 sec)

  1. docs/vi/docs/virtual-environments.md

    <div class="termy">
    
    ```console
    $ which python
    
    /home/user/code/awesome-project/.venv/bin/python
    ```
    
    </div>
    
    Nếu nó hiển thị `python` binary tại `.venv/bin/python`, trong dự án của bạn (trong trường hợp `awesome-project`), thì tức là nó hoạt động. 🎉
    
    ////
    
    //// tab | Windows PowerShell
    
    <div class="termy">
    
    ```console
    $ Get-Command python
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Feb 07 22:19:18 UTC 2025
    - 26.1K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/query-params-str-validations.md

    * `Annotated` von `typing` (oder von `typing_extensions` in Python unter 3.9)
    
    //// tab | Python 3.10+
    
    In Python 3.9 oder darüber, ist `Annotated` Teil der Standardbibliothek, also können Sie es von `typing` importieren.
    
    ```Python hl_lines="1  3"
    {!> ../../docs_src/query_params_str_validations/tutorial002_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    In Versionen unter Python 3.9 importieren Sie `Annotated` von `typing_extensions`.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Feb 15 16:23:59 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/settings.md

    </div>
    
    ////
    
    ### Lendo variáveis de ambiente com Python
    
    Você também pode criar variáveis de ambiente fora do Python, no terminal (ou com qualquer outro método), e realizar a leitura delas no Python.
    
    Por exemplo, você pode definir um arquivo `main.py` com o seguinte código:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip | Dica
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Wed Jan 15 20:17:23 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/body.md

    Usa tipos estándar de Python para todos los atributos:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[5:9] *}
    
    Al igual que al declarar parámetros de query, cuando un atributo del modelo tiene un valor por defecto, no es obligatorio. De lo contrario, es obligatorio. Usa `None` para hacerlo opcional.
    
    Por ejemplo, el modelo anterior declara un “`object`” JSON (o `dict` en Python) como:
    
    ```JSON
    {
        "name": "Foo",
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. docs/es/docs/advanced/security/http-basic-auth.md

    Y envían un request con un nombre de usuario `johndoe` y una contraseña `love123`.
    
    Entonces el código de Python en tu aplicación equivaldría a algo como:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. docs/de/docs/advanced/security/http-basic-auth.md

    Und sie senden eine Anfrage mit dem Benutzernamen `johndoe` und dem Passwort `love123`.
    
    Dann würde der Python-Code in Ihrer Anwendung etwa so aussehen:
    
    ```Python
    if "johndoe" == "stanleyjobson" and "love123" == "swordfish":
        ...
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Oct 27 15:25:54 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/request_files.md

    Você pode definir arquivos para serem enviados para o cliente utilizando `File`.
    
    /// info
    
    Para receber arquivos compartilhados, primeiro  instale <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
    E.g. `pip install python-multipart`.
    
    Isso se deve por que arquivos enviados são enviados como "dados de formulário".
    
    ///
    
    ## Importe `File`
    
    Importe `File` e `UploadFile` do `fastapi`:
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. docs/ru/docs/tutorial/path-params.md

    ```JSON
    {"item_id":3}
    ```
    
    /// check | Заметка
    
    Обратите внимание на значение `3`, которое получила (и вернула) функция. Это целочисленный Python `int`, а не строка `"3"`.
    
    Используя определения типов, **FastAPI** выполняет автоматический <abbr title="преобразование строк из HTTP-запроса в типы данных Python">"парсинг"</abbr> запросов.
    
    ///
    
    ## <abbr title="Или валидация">Проверка</abbr> данных
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/request-forms-and-files.md

    /// info
    
    Um hochgeladene Dateien und/oder Formulardaten zu empfangen, installieren Sie zuerst <a href="https://andrew-d.github.io/python-multipart/" class="external-link" target="_blank">`python-multipart`</a>.
    
    Z. B. `pip install python-multipart`.
    
    ///
    
    ## `File` und `Form` importieren
    
    {* ../../docs_src/request_forms_and_files/tutorial001_an_py39.py hl[3] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. docs/es/docs/tutorial/bigger-applications.md

    Ahora utilizaremos una dependencia simple para leer un encabezado `X-Token` personalizado:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="3  6-8" title="app/dependencies.py"
    {!> ../../docs_src/bigger_applications/app_an_py39/dependencies.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="1  5-7" title="app/dependencies.py"
    {!> ../../docs_src/bigger_applications/app_an/dependencies.py!}
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun May 11 13:37:26 UTC 2025
    - 19.3K bytes
    - Viewed (0)
Back to top