- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for Modules (0.2 sec)
-
docs/de/docs/tutorial/bigger-applications.md
```Python from app.routers import items, users ``` Um mehr über Python-Packages und -Module zu erfahren, lesen Sie <a href="https://docs.python.org/3/tutorial/modules.html" class="external-link" target="_blank">die offizielle Python-Dokumentation über Module</a>. ### Namenskollisionen vermeiden Wir importieren das Submodul `items` direkt, anstatt nur seine Variable `router` zu importieren.
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) -
docs/em/docs/tutorial/bigger-applications.md
🎏 📁 📊 ⏮️ 🏤: ``` . ├── app # "app" is a Python package │ ├── __init__.py # this file makes "app" a "Python package" │ ├── main.py # "main" module, e.g. import app.main │ ├── dependencies.py # "dependencies" module, e.g. import app.dependencies │ └── routers # "routers" is a "Python subpackage" │ │ ├── __init__.py # makes "routers" a "Python subpackage"
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) -
docs/en/docs/tutorial/bigger-applications.md
``` To learn more about Python Packages and Modules, read <a href="https://docs.python.org/3/tutorial/modules.html" class="external-link" target="_blank">the official Python documentation about Modules</a>. ### Avoid name collisions We are importing the submodule `items` directly, instead of importing just its variable `router`. This is because we also have another variable named `router` in the submodule `users`.
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) -
docs/zh/docs/tutorial/bigger-applications.md
``` 第二个版本是「绝对导入」: ```Python from app.routers import items, users ``` 要了解有关 Python 包和模块的更多信息,请查阅<a href="https://docs.python.org/3/tutorial/modules.html" class="external-link" target="_blank">关于 Modules 的 Python 官方文档</a>。 ### 避免名称冲突 我们将直接导入 `items` 子模块,而不是仅导入其 `router` 变量。 这是因为我们在 `users` 子模块中也有另一个名为 `router` 的变量。 如果我们一个接一个地导入,例如: ```Python
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)