- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for hosts (0.15 sec)
-
docs/en/docs/tutorial/debugging.md
``` </div> then the internal variable `__name__` in your file, created automatically by Python, will have as value the string `"__main__"`. So, the section: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` will run. --- This won't happen if you import that module (file). So, if you have another file `importer.py` with: ```Python from myapp import app
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jun 22 17:04:16 GMT 2023 - 2.4K bytes - Viewed (0) -
docs/ko/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 uvicorn.run(app, host="0.0.0.0", port=8000) ``` 은 실행되지 않습니다.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Apr 02 04:18:08 GMT 2024 - 2.8K bytes - Viewed (0) -
docs/ru/docs/tutorial/debugging.md
</div> то встроенная переменная `__name__`, автоматически создаваемая Python в вашем файле, будет иметь значение строкового типа `"__main__"`. Тогда выполнится условие и эта часть кода: ```Python uvicorn.run(app, host="0.0.0.0", port=8000) ``` будет запущена. --- Но этого не произойдет, если вы импортируете этот модуль (файл). Таким образом, если у вас есть файл `importer.py` с таким импортом: ```Python
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 3.8K bytes - Viewed (0) -
docs/fr/docs/tutorial/debugging.md
``` </div> alors la variable interne `__name__` de votre fichier, créée automatiquement par Python, aura pour valeur la chaîne de caractères `"__main__"`. Ainsi, la section : ```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
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon Mar 06 16:26:49 GMT 2023 - 2.9K bytes - Viewed (0) -
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 uvicorn.run(app, host="0.0.0.0", port=8000) ``` 🔜 🚫 🛠️.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Apr 01 09:26:04 GMT 2023 - 2.1K bytes - Viewed (0)