Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 341 - 350 of 368 for World (0.2 seconds)

  1. docs/pt/docs/virtual-environments.md

    Depois de ativar o ambiente virtual, você pode executar seu programa, e ele usará o Python dentro do seu ambiente virtual com os pacotes que você instalou lá.
    
    <div class="termy">
    
    ```console
    $ python main.py
    
    Hello World
    ```
    
    </div>
    
    ## Configure seu editor { #configure-your-editor }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 23K bytes
    - Click Count (0)
  2. docs/fr/docs/deployment/docker.md

    * Créez un fichier vide `__init__.py`.
    * Créez un fichier `main.py` avec :
    
    ```Python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 32.3K bytes
    - Click Count (0)
  3. docs/zh/docs/deployment/docker.md

    * 创建 `app` 目录并进入
    * 创建空文件 `__init__.py`
    * 创建 `main.py`,内容如下:
    
    ```Python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    现在在同一个项目目录下创建 `Dockerfile` 文件:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 24.8K bytes
    - Click Count (0)
  4. docs/fr/docs/alternatives.md

    ```
    
    L’opération de chemin d'accès correspondante dans **FastAPI** pourrait ressembler à ceci :
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    Notez les similitudes entre `requests.get(...)` et `@app.get(...)`.
    
    /// check | A inspiré **FastAPI** à
    
    * Avoir une API simple et intuitive.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 26.6K bytes
    - Click Count (0)
  5. fastapi/routing.py

            app = FastAPI()
            router = APIRouter()
    
            @router.head("/items/", status_code=204)
            def get_items_headers(response: Response):
                response.headers["X-Cat-Dog"] = "Alone in the world"
    
            app.include_router(router)
            ```
            """
            return self.api_route(
                path=path,
                response_model=response_model,
                status_code=status_code,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 193K bytes
    - Click Count (0)
  6. docs/de/docs/alternatives.md

    ```
    
    Die entsprechende *Pfadoperation* der FastAPI-API könnte wie folgt aussehen:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    Sehen Sie sich die Ähnlichkeiten in `requests.get(...)` und `@app.get(...)` an.
    
    /// check | Inspirierte **FastAPI**
    
    * Über eine einfache und intuitive API zu verfügen.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 26K bytes
    - Click Count (0)
  7. docs/tr/docs/deployment/docker.md

    * Aşağıdakilerle bir `main.py` dosyası oluşturun:
    
    ```Python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 29.6K bytes
    - Click Count (0)
  8. docs/es/docs/deployment/docker.md

    * Crea un archivo vacío `__init__.py`.
    * Crea un archivo `main.py` con:
    
    ```Python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 30.8K bytes
    - Click Count (0)
  9. docs/de/docs/deployment/docker.md

    * Erstellen Sie eine `main.py`-Datei mit:
    
    ```Python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 32.4K bytes
    - Click Count (0)
  10. docs/uk/docs/deployment/docker.md

    * Створіть порожній файл `__init__.py`.
    * Створіть файл `main.py` з вмістом:
    
    ```Python
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: str | None = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile { #dockerfile }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 44.2K bytes
    - Click Count (0)
Back to Top