Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 166 for Junior (0.31 sec)

  1. docs/vi/docs/python-types.md

        * Giá trị của `dict` này là kiểu `float` (đó là giá của mỗi vật phẩm).
    
    #### Union
    
    Bạn có thể khai báo rằng một biến có thể là **một vài kiểu dữ liệu" bất kì, ví dụ, một `int` hoặc một `str`.
    
    Trong Python 3.6 hoặc lớn hơn (bao gồm Python 3.10) bạn có thể sử dụng kiểu `Union` từ `typing` và đặt trong dấu ngoặc vuông những giá trị được chấp nhận.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/query-params-str-validations.md

    ```Python
    q: str
    ```
    
    вместо:
    
    ```Python
    q: Union[str, None] = None
    ```
    
    Но у нас query-параметр определён как `Query`. Например:
    
    === "Annotated"
    
        ```Python
        q: Annotated[Union[str, None], Query(min_length=3)] = None
        ```
    
    === "без Annotated"
    
        ```Python
        q: Union[str, None] = Query(default=None, min_length=3)
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 38K bytes
    - Viewed (0)
  3. docs_src/extra_data_types/tutorial001_an.py

    from typing import Union
    from uuid import UUID
    
    from fastapi import Body, FastAPI
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    
    @app.put("/items/{item_id}")
    async def read_items(
        item_id: UUID,
        start_datetime: Annotated[datetime, Body()],
        end_datetime: Annotated[datetime, Body()],
        process_after: Annotated[timedelta, Body()],
        repeat_at: Annotated[Union[time, None], Body()] = None,
    ):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Apr 19 00:11:40 GMT 2024
    - 830 bytes
    - Viewed (0)
  4. docs/em/docs/python-types.md

        ```
    
    #### ⚙️ `Union` ⚖️ `Optional`
    
    🚥 👆 ⚙️ 🐍 ⏬ 🔛 3️⃣.1️⃣0️⃣, 📥 💁‍♂ ⚪️➡️ 👇 📶 **🤔** ☝ 🎑:
    
    * 👶 ❎ ⚙️ `Optional[SomeType]`
    * ↩️ 👶 **⚙️ `Union[SomeType, None]`** 👶.
    
    👯‍♂️ 🌓 & 🔘 👫 🎏, ✋️ 👤 🔜 👍 `Union` ↩️ `Optional` ↩️ 🔤 "**📦**" 🔜 😑 🔑 👈 💲 📦, & ⚫️ 🤙 ⛓ "⚫️ 💪 `None`", 🚥 ⚫️ 🚫 📦 & ✔.
    
    👤 💭 `Union[SomeType, None]` 🌖 🔑 🔃 ⚫️❔ ⚫️ ⛓.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  5. docs/zh/docs/tutorial/extra-models.md

        {!> ../../../docs_src/extra_models/tutorial002.py!}
        ```
    
    ## `Union` 或者 `anyOf`
    
    响应可以声明为两种类型的 `Union` 类型,即该响应可以是两种类型中的任意类型。
    
    在 OpenAPI 中可以使用 `anyOf` 定义。
    
    为此,请使用 Python 标准类型提示 <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    !!! note "笔记"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 01 01:15:53 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  6. docs/pl/docs/index.md

    ## Przykład
    
    ### Stwórz
    
    * Utwórz plik o nazwie `main.py` z:
    
    ```Python
    from typing import Union
    
    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: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    <details markdown="1">
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  7. docs/ru/docs/index.md

    ### Создание
    
    * Создайте файл `main.py` со следующим содержимым:
    
    ```Python
    from typing import Union
    
    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: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    <details markdown="1">
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Apr 29 05:18:04 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MultisetsTest.java

        assertThat(Multisets.union(ms1, ms2)).containsExactly("a", "a", "b", "b", "c");
      }
    
      public void testUnionEqualMultisets() {
        Multiset<String> ms1 = HashMultiset.create(Arrays.asList("a", "b", "a"));
        Multiset<String> ms2 = HashMultiset.create(Arrays.asList("a", "b", "a"));
        assertEquals(ms1, Multisets.union(ms1, ms2));
      }
    
      public void testUnionEmptyNonempty() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/query-params-str-validations.md

    ```Python
    q: str
    ```
    
    statt:
    
    ```Python
    q: Union[str, None] = None
    ```
    
    Aber jetzt deklarieren wir den Parameter mit `Query`, wie in:
    
    === "Annotiert"
    
        ```Python
        q: Annotated[Union[str, None], Query(min_length=3)] = None
        ```
    
    === "Nicht annotiert"
    
        ```Python
        q: Union[str, None] = Query(default=None, min_length=3)
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 17:58:59 GMT 2024
    - 27.7K bytes
    - Viewed (0)
  10. .gitattributes

    *.gen.go linguist-generated=true
    *.gen.yaml linguist-generated=true
    *.gen.json linguist-generated=true
    *_pb2.py linguist-generated=true
    manifests/charts/**/profile*.yaml linguist-generated=true
    go.sum merge=union
    vendor/**  linguist-vendored
    common/**  linguist-vendored
    archive/**  linquist-vendored
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Feb 01 19:15:39 GMT 2024
    - 545 bytes
    - Viewed (0)
Back to top