Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for from (0.14 sec)

  1. docs/de/docs/tutorial/bigger-applications.md

    Wir könnten sie auch wie folgt importieren:
    
    ```Python
    from app.routers import items, users
    ```
    
    !!! info
        Die erste Version ist ein „relativer Import“:
    
        ```Python
        from .routers import items, users
        ```
    
        Die zweite Version ist ein „absoluter Import“:
    
        ```Python
        from app.routers import items, users
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:27:59 GMT 2024
    - 21.1K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/bigger-applications.md

    & ⤴️ 👥 🎏 🕹 `users`.
    
    👥 💪 🗄 👫 💖:
    
    ```Python
    from app.routers import items, users
    ```
    
    !!! info
        🥇 ⏬ "⚖ 🗄":
    
        ```Python
        from .routers import items, users
        ```
    
        🥈 ⏬ "🎆 🗄":
    
        ```Python
        from app.routers import items, users
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/bigger-applications.md

    This is because we also have another variable named `router` in the submodule `users`.
    
    If we had imported one after the other, like:
    
    ```Python
    from .routers.items import router
    from .routers.users import router
    ```
    
    the `router` from `users` would overwrite the one from `items` and we wouldn't be able to use them at the same time.
    
    So, to be able to use both of them in the same file, we import the submodules directly:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. docs/zh/docs/tutorial/bigger-applications.md

    然后我们对 `users` 模块进行相同的操作。
    
    我们也可以像这样导入它们:
    
    ```Python
    from app.routers import items, users
    ```
    
    !!! info
        第一个版本是「相对导入」:
    
        ```Python
        from .routers import items, users
        ```
    
        第二个版本是「绝对导入」:
    
        ```Python
        from app.routers import items, users
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.5K bytes
    - Viewed (0)
Back to top