Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 833 for python3 (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/en/docs/async.md

    ## `async` and `await` { #async-and-await }
    
    Modern versions of Python have a very intuitive way to define asynchronous code. This makes it look just like normal "sequential" code and do the "awaiting" for you at the right moments.
    
    When there is an operation that will require waiting before giving the results and has support for these new Python features, you can code it like:
    
    ```Python
    burgers = await get_burgers(2)
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 23.4K bytes
    - Click Count (0)
  2. docs/pt/docs/environment-variables.md

    </div>
    
    ////
    
    ## Ler Variáveis de Ambiente no Python { #read-env-vars-in-python }
    
    Você também pode criar variáveis de ambiente **fora** do Python, no terminal (ou com qualquer outro método) e depois **lê-las no Python**.
    
    Por exemplo, você poderia ter um arquivo `main.py` com:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip | Dica
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  3. docs/de/docs/tutorial/dependencies/classes-as-dependencies.md

    Beachten Sie, wie wir `CommonQueryParams` im obigen Code zweimal schreiben:
    
    //// tab | Python 3.10+
    
    ```Python
    commons: Annotated[CommonQueryParams, Depends(CommonQueryParams)]
    ```
    
    ////
    
    //// tab | Python 3.10+ nicht annotiert
    
    /// tip | Tipp
    
    Bevorzugen Sie die `Annotated`-Version, falls möglich.
    
    ///
    
    ```Python
    commons: CommonQueryParams = Depends(CommonQueryParams)
    ```
    
    ////
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 07:57:30 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/environment-variables.md

    Hello Wade Wilson
    ```
    
    </div>
    
    ////
    
    ## 在 Python 中讀取環境變數 { #read-env-vars-in-python }
    
    你也可以在 Python **之外**的終端機中建立環境變數(或使用其他方法),然後在 Python 中**讀取**它們。
    
    例如,你可以建立一個名為 `main.py` 的檔案,其中包含以下內容:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip
    
    第二個參數是 [`os.getenv()`](https://docs.python.org/3.8/library/os.html#os.getenv) 的預設回傳值。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  5. docs/uk/docs/virtual-environments.md

    <div class="termy">
    
    ```console
    $ python -m venv .venv
    ```
    
    </div>
    
    /// details | Що означає ця команда
    
    * `python`: використати програму з назвою `python`
    * `-m`: викликати модуль як скрипт, далі ми вкажемо, який модуль
    * `venv`: використати модуль з назвою `venv`, який зазвичай уже встановлено з Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 33.3K bytes
    - Click Count (0)
  6. docs/es/docs/virtual-environments.md

    <div class="termy">
    
    ```console
    $ which python
    
    /home/user/code/awesome-project/.venv/bin/python
    ```
    
    </div>
    
    Si muestra el binario de `python` en `.venv/bin/python`, dentro de tu proyecto (en este caso `awesome-project`), entonces funcionó. 🎉
    
    ////
    
    //// tab | Windows PowerShell
    
    <div class="termy">
    
    ```console
    $ Get-Command python
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 22.6K bytes
    - Click Count (0)
  7. docs/pt/docs/virtual-environments.md

    <div class="termy">
    
    ```console
    $ which python
    
    /home/user/code/awesome-project/.venv/bin/python
    ```
    
    </div>
    
    Se ele mostrar o binário `python` em `.venv/bin/python`, dentro do seu projeto (neste caso `awesome-project`), então funcionou. 🎉
    
    ////
    
    //// tab | Windows PowerShell
    
    <div class="termy">
    
    ```console
    $ Get-Command python
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 23K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/debugging.md

    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    mas não é chamado quando outro arquivo o importa, como em:
    
    ```Python
    from myapp import app
    ```
    
    #### Mais detalhes { #more-details }
    
    Digamos que seu arquivo se chama `myapp.py`.
    
    Se você executá-lo com:
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  9. docs/fr/docs/tutorial/extra-models.md

    ```Python
    user_in = UserIn(username="john", password="secret", email="******@****.***")
    ```
    
    et que nous appelons ensuite :
    
    ```Python
    user_dict = user_in.model_dump()
    ```
    
    nous avons maintenant un `dict` avec les données dans la variable `user_dict` (c'est un `dict` au lieu d'un objet modèle Pydantic).
    
    Et si nous appelons :
    
    ```Python
    print(user_dict)
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 7.6K bytes
    - Click Count (0)
  10. docs/fr/docs/tutorial/debugging.md

    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    mais qui n'est pas appelé lorsqu'un autre fichier l'importe, comme dans :
    
    ```Python
    from myapp import app
    ```
    
    #### Pour davantage de détails { #more-details }
    
    Imaginons que votre fichier s'appelle `myapp.py`.
    
    Si vous l'exécutez avec :
    
    <div class="termy">
    
    ```console
    $ python myapp.py
    ```
    
    </div>
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 2.9K bytes
    - Click Count (0)
Back to Top