Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 49 for importDir (0.08 sec)

  1. docs/zh/docs/tutorial/debugging.md

    </div>
    
    那么文件中由 Python 自动创建的内部变量 `__name__`,会将字符串 `"__main__"` 作为值。
    
    所以,下面这部分代码才会运行:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    ---
    
    如果你是导入这个模块(文件)就不会这样。
    
    因此,如果你的另一个文件 `importer.py` 像这样:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    在这种情况下,`myapp.py` 内部的自动变量不会有值为 `"__main__"` 的变量 `__name__`。
    
    所以,下面这一行不会被执行:
    
    ```Python
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/debugging.md

    , 📄:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    🔜 🏃.
    
    ---
    
    👉 🏆 🚫 🔨 🚥 👆 🗄 👈 🕹 (📁).
    
    , 🚥 👆 ✔️ ➕1️⃣ 📁 `importer.py` ⏮️:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    👈 💼, 🏧 🔢 🔘 `myapp.py` 🔜 🚫 ✔️ 🔢 `__name__` ⏮️ 💲 `"__main__"`.
    
    , ⏸:
    
    ```Python
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/bigger-applications.md

    Mas ele ainda faz parte da mesma aplicação/web API **FastAPI** (faz parte do mesmo "pacote Python").
    
    Você pode criar as *operações de rotas* para esse módulo usando o `APIRouter`.
    
    ### Importar `APIRouter`
    
    você o importa e cria uma "instância" da mesma maneira que faria com a classe `FastAPI`:
    
    ```Python hl_lines="1  3" title="app/routers/users.py"
    {!../../docs_src/bigger_applications/app/routers/users.py!}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. docs/fr/docs/tutorial/debugging.md

    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    va s'exécuter.
    
    ---
    
    Cela ne se produira pas si vous importez ce module (fichier).
    
    Par exemple, si vous avez un autre fichier `importer.py` qui contient :
    
    ```Python
    from myapp import app
    
    # Code supplémentaire
    ```
    
    dans ce cas, la variable automatique `__name__` à l'intérieur de `myapp.py` n'aura pas la valeur `"__main__"`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 17:31:14 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. docs/ja/docs/tutorial/debugging.md

    なので、以下:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    は実行されます。
    
    ---
    
    そのモジュール (ファイル) をインポートした場合は、こうはなりません。
    
    したがって、次のようなもう一つのファイル `importer.py` がある場合:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    `myapp.py` 内の自動変数には、値が `"__main __"` の変数 `__name__` はありません。
    
    したがって、以下の行:
    
    ```Python
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. ci/official/requirements_updater/numpy1_requirements/requirements_lock_3_9.txt

    idna==3.7 \
        --hash=sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc \
        --hash=sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0
        # via requests
    importlib-metadata==7.1.0 \
        --hash=sha256:30962b96c0c223483ed6cc7280e7f0199feb01a0e40cfae4d4450fc6fab1f570 \
        --hash=sha256:b78938b926ee8d5f020fc4772d487045805a55ddbad2ecf21c6d60938dc7fcd2
        # via markdown
    jax==0.4.7 \
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 28 14:33:43 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/path-params-numeric-validations.md

    Isso não faz diferença para o **FastAPI**. Ele vai detectar os parâmetros pelos seus nomes, tipos e definições padrão (`Query`, `Path`, etc), sem se importar com a ordem.
    
    Então, você pode declarar sua função assim:
    
    ```Python hl_lines="7"
    {!../../docs_src/path_params_numeric_validations/tutorial002.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  8. requirements_lock_3_9.txt

    idna==3.7 \
        --hash=sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc \
        --hash=sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0
        # via requests
    importlib-metadata==7.1.0 \
        --hash=sha256:30962b96c0c223483ed6cc7280e7f0199feb01a0e40cfae4d4450fc6fab1f570 \
        --hash=sha256:b78938b926ee8d5f020fc4772d487045805a55ddbad2ecf21c6d60938dc7fcd2
        # via markdown
    jax==0.4.7 \
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 26 00:18:03 UTC 2024
    - 48.3K bytes
    - Viewed (0)
  9. docs/pt/docs/project-generation.md

    * Modelos básicos para usuários (modifique e remova conforme suas necessidades).
    * Migrações **Alembic**.
    * **CORS** (_Cross Origin Resource Sharing_ - Compartilhamento de Recursos Entre Origens).
    * _Worker_ **Celery** que pode importar e usar modelos e códigos do resto do _backend_ seletivamente.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Jul 29 23:35:07 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. api/go1.12.txt

    pkg debug/pe, const IMAGE_FILE_MACHINE_ARMNT ideal-int
    pkg expvar, method (*Map) Delete(string)
    pkg go/doc, const PreserveAST = 4
    pkg go/doc, const PreserveAST Mode
    pkg go/importer, func ForCompiler(*token.FileSet, string, Lookup) types.Importer
    pkg go/token, method (*File) LineStart(int) Pos
    pkg io, type StringWriter interface { WriteString }
    pkg io, type StringWriter interface, WriteString(string) (int, error)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Jan 02 21:21:53 UTC 2019
    - 13.5K bytes
    - Viewed (0)
Back to top