- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for Post (0.15 sec)
-
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/zh/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) ``` !!! info
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 27 17:51:51 GMT 2021 - 2.4K bytes - Viewed (0) -
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/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 uvicorn.run(app, host="0.0.0.0", port=8000) ``` は実行されません。
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Feb 07 17:25:31 GMT 2021 - 3K 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)