Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 487 for str (0.01 sec)

  1. src/main/java/jcifs/util/Encdec.java

        /**
         * Encodes a String as UTF-8 bytes.
         *
         * @param str the String to encode
         * @param dst the destination byte array
         * @param di the starting index in the destination array
         * @param dlim the maximum index in the destination array
         * @return the number of bytes written
         */
        public static int enc_utf8(final String str, final byte[] dst, int di, final int dlim) {
            final int start = di;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  2. docs/ja/docs/tutorial/path-params.md

    ## 定義済みの値
    
    *パスパラメータ*を受け取る *path operation* をもち、有効な*パスパラメータ*の値を事前に定義したい場合は、標準のPython <abbr title="Enumeration">`Enum`</abbr> を利用できます。
    
    ### `Enum` クラスの作成
    
    `Enum` をインポートし、 `str` と `Enum` を継承したサブクラスを作成します。
    
    `str` を継承することで、APIドキュメントは値が `文字列` でなければいけないことを知り、正確にレンダリングできるようになります。
    
    そして、固定値のクラス属性を作ります。すると、その値が使用可能な値となります:
    
    {* ../../docs_src/path_params/tutorial005.py hl[1,6,7,8,9] *}
    
    /// info | 情報
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. docs/uk/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial004_py310.py hl[9,11:12] *}
    
    * `description: Union[str, None] = None` (або `str | None = None` у Python 3.10) має значення за замовчуванням `None`.
    * `tax: float = 10.5` має значення за замовчуванням `10.5`.
    * `tags: List[str] = []` має значення за замовчуванням порожній список: `[]`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Jun 24 19:14:01 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial004_py310.py hl[9,11:12] *}
    
    * `description: Union[str, None] = None` (или `str | None = None` в Python 3.10), где `None` является значением по умолчанию.
    * `tax: float = 10.5`, где `10.5` является значением по умолчанию.
    * `tags: List[str] = []`, где пустой список `[]` является значением по умолчанию.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/body-multiple-params.md

    ## 💗 💪 = &amp; 🔢
    
    ↗️, 👆 💪 📣 🌖 🔢 🔢 🕐❔ 👆 💪, 🌖 🙆 💪 🔢.
    
    , 🔢, ⭐ 💲 🔬 🔢 🔢, 👆 🚫 ✔️ 🎯 🚮 `Query`, 👆 💪:
    
    ```Python
    q: Union[str, None] = None
    ```
    
    ⚖️ 🐍 3️⃣.1️⃣0️⃣ &amp; 🔛:
    
    ```Python
    q: str | None = None
    ```
    
    🖼:
    
    {* ../../docs_src/body_multiple_params/tutorial004.py hl[27] *}
    
    /// info
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/dependencies/sub-dependencies.md

    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: Annotated[str, Depends(get_value, use_cache=False)]):
        return {"fresh_value": fresh_value}
    ```
    
    ////
    
    //// tab | Python 3.6+ без Annotated
    
    /// tip | Подсказка
    
    Предпочтительнее использовать версию с аннотацией, если это возможно.
    
    ///
    
    ```Python hl_lines="1"
    async def needy_dependency(fresh_value: str = Depends(get_value, use_cache=False)):
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/body.md

    * If the parameter is declared to be of the type of a **Pydantic model**, it will be interpreted as a request **body**.
    
    /// note
    
    FastAPI will know that the value of `q` is not required because of the default value `= None`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:58:56 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/http/NetworkExplorer.java

            fmt = req.getParameter("fmt");
            if (fmt == null) {
                fmt = "col";
            }
            sort = 0;
            if ((str = req.getParameter("sort")) == null || str.equals("name")) {
                sort = 0;
            } else if (str != null) {
                switch (str) {
                case "size":
                    sort = 1;
                    break;
                case "type":
                    sort = 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  9. docs/ko/docs/index.md

    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: float
        is_offer: Union[bool, None] = None
    
    
    @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}
    
    
    @app.put("/items/{item_id}")
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:49:48 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  10. docs/em/docs/advanced/security/oauth2-scopes.md

    👈, 👥 ℹ Pydantic 🏷 `TokenData` ⏮️ 🆕 🏠 `scopes`.
    
    ⚖ 📊 ⏮️ Pydantic 👥 💪 ⚒ 💭 👈 👥 ✔️, 🖼, ⚫️❔ `list` `str` ⏮️ ↔ &amp; `str` ⏮️ `username`.
    
    ↩️, 🖼, `dict`, ⚖️ 🕳 🙆, ⚫️ 💪 💔 🈸 ☝ ⏪, ⚒ ⚫️ 💂‍♂ ⚠.
    
    👥 ✔ 👈 👥 ✔️ 👩‍💻 ⏮️ 👈 🆔, &amp; 🚥 🚫, 👥 🤚 👈 🎏 ⚠ 👥 ✍ ⏭.
    
    {* ../../docs_src/security/tutorial005.py hl[46,116:128] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:03:10 UTC 2025
    - 10.8K bytes
    - Viewed (0)
Back to top