Search Options

Results per page
Sort
Preferred Languages
Advance

Results 821 - 830 of 1,094 for Fstr (0.03 sec)

  1. docs/em/docs/tutorial/body-updates.md

    โ„น ๐Ÿฌ ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT" class="external-link" target="_blank">๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ” `PUT`</a> ๐Ÿ› ๏ธ.
    
    ๐Ÿ‘† ๐Ÿ’ช โš™๏ธ `jsonable_encoder` ๐Ÿ—œ ๐Ÿ”ข ๐Ÿ’ฝ ๐Ÿ“Š ๐Ÿ‘ˆ ๐Ÿ’ช ๐Ÿช ๐ŸŽป (โœ… โฎ๏ธ โ˜ ๐Ÿ’ฝ). ๐Ÿ–ผ, ๐Ÿญ `datetime` `str`.
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ &amp; ๐Ÿ”›
    
    ```Python hl_lines="30-35"
    {!> ../../docs_src/body_updates/tutorial001.py!}
    ```
    
    ////
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.9๏ธโƒฃ &amp; ๐Ÿ”›
    
    ```Python hl_lines="30-35"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/LittleEndianDataOutputStream.java

      @Override
      public void writeShort(int v) throws IOException {
        out.write(0xFF & v);
        out.write(0xFF & (v >> 8));
      }
    
      @Override
      public void writeUTF(String str) throws IOException {
        ((DataOutputStream) out).writeUTF(str);
      }
    
      // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 26 12:34:49 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        public final void writeUTF ( String str ) throws SmbException {
            int len = str.length();
            int ch, size = 0;
            byte[] dst;
    
            for ( int i = 0; i < len; i++ ) {
                ch = str.charAt(i);
                size += ch > 0x07F ? ( ch > 0x7FF ? 3 : 2 ) : 1;
            }
            dst = new byte[size];
            writeShort(size);
            Encdec.enc_utf8(str, dst, 0, size);
            write(dst, 0, size);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  4. docs_src/python_types/tutorial009b.py

    from typing import Union
    
    
    def say_hi(name: Union[str, None] = None):
        if name is not None:
            print(f"Hey {name}!")
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 164 bytes
    - Viewed (0)
  5. docs/em/docs/advanced/security/oauth2-scopes.md

    ๐Ÿ‘ˆ, ๐Ÿ‘ฅ โ„น Pydantic ๐Ÿท `TokenData` โฎ๏ธ ๐Ÿ†• ๐Ÿ  `scopes`.
    
    โš– ๐Ÿ“Š โฎ๏ธ Pydantic ๐Ÿ‘ฅ ๐Ÿ’ช โš’ ๐Ÿ’ญ ๐Ÿ‘ˆ ๐Ÿ‘ฅ โœ”๏ธ, ๐Ÿ–ผ, โšซ๏ธโ” `list` `str` โฎ๏ธ โ†” &amp; `str` โฎ๏ธ `username`.
    
    โ†ฉ๏ธ, ๐Ÿ–ผ, `dict`, โš–๏ธ ๐Ÿ•ณ ๐Ÿ™†, โšซ๏ธ ๐Ÿ’ช ๐Ÿ’” ๐Ÿˆธ โ˜ โช, โš’ โšซ๏ธ ๐Ÿ’‚โ€โ™‚ โš .
    
    ๐Ÿ‘ฅ โœ” ๐Ÿ‘ˆ ๐Ÿ‘ฅ โœ”๏ธ ๐Ÿ‘ฉโ€๐Ÿ’ป โฎ๏ธ ๐Ÿ‘ˆ ๐Ÿ†”, &amp; ๐Ÿšฅ ๐Ÿšซ, ๐Ÿ‘ฅ ๐Ÿคš ๐Ÿ‘ˆ ๐ŸŽ โš  ๐Ÿ‘ฅ โœ โญ.
    
    ```Python hl_lines="46  116-127"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. 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
    ```
    
    ๐Ÿ–ผ:
    
    //// tab | ๐Ÿ 3๏ธโƒฃ.6๏ธโƒฃ &amp; ๐Ÿ”›
    
    ```Python hl_lines="27"
    {!> ../../docs_src/body_multiple_params/tutorial004.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. docs/ko/docs/tutorial/path-operation-configuration.md

    /// note | "๊ธฐ์ˆ ์  ์„ธ๋ถ€์‚ฌํ•ญ"
    
    ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž„ํฌํŠธํ•˜์…”๋„ ์ข‹์Šต๋‹ˆ๋‹ค. `from starlette import status`.
    
    **FastAPI**๋Š” ๊ฐœ๋ฐœ์ž ์—ฌ๋Ÿฌ๋ถ„์˜ ํŽธ์˜๋ฅผ ์œ„ํ•ด์„œ `starlette.status`์™€ ๋™์ผํ•œ `fastapi.status`๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ Starlette์—์„œ ์ง์ ‘ ์˜จ ๊ฒƒ์ž…๋‹ˆ๋‹ค.
    
    ///
    
    ## ํƒœ๊ทธ
    
    (๋ณดํ†ต ๋‹จ์ผ `str`์ธ) `str`๋กœ ๊ตฌ์„ฑ๋œ `list`์™€ ํ•จ๊ป˜ ๋งค๊ฐœ๋ณ€์ˆ˜ `tags`๋ฅผ ์ „๋‹ฌํ•˜์—ฌ, `๊ฒฝ๋กœ ์ž‘๋™`์— ํƒœ๊ทธ๋ฅผ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค:
    
    ```Python hl_lines="17  22  27"
    {!../../docs_src/path_operation_configuration/tutorial002.py!}
    ```
    
    ์ „๋‹ฌ๋œ ํƒœ๊ทธ๋“ค์€ OpenAPI์˜ ์Šคํ‚ค๋งˆ์— ์ถ”๊ฐ€๋˜๋ฉฐ, ์ž๋™ ๋ฌธ์„œ ์ธํ„ฐํŽ˜์ด์Šค์—์„œ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. tests/test_serialize_response.py

    from typing import List, Optional
    
    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class Item(BaseModel):
        name: str
        price: Optional[float] = None
        owner_ids: Optional[List[int]] = None
    
    
    @app.get("/items/valid", response_model=Item)
    def get_valid():
        return {"name": "valid", "price": 1.0}
    
    
    @app.get("/items/coerce", response_model=Item)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 03 12:29:07 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  9. docs/ja/docs/tutorial/path-params.md

    ## ๅฎš็พฉๆธˆใฟใฎๅ€ค
    
    *ใƒ‘ใ‚นใƒ‘ใƒฉใƒกใƒผใ‚ฟ*ใ‚’ๅ—ใ‘ๅ–ใ‚‹ *path operation* ใ‚’ใ‚‚ใกใ€ๆœ‰ๅŠนใช*ใƒ‘ใ‚นใƒ‘ใƒฉใƒกใƒผใ‚ฟ*ใฎๅ€คใ‚’ไบ‹ๅ‰ใซๅฎš็พฉใ—ใŸใ„ๅ ดๅˆใฏใ€ๆจ™ๆบ–ใฎPython <abbr title="Enumeration">`Enum`</abbr> ใ‚’ๅˆฉ็”จใงใใพใ™ใ€‚
    
    ### `Enum` ใ‚ฏใƒฉใ‚นใฎไฝœๆˆ
    
    `Enum` ใ‚’ใ‚คใƒณใƒใƒผใƒˆใ—ใ€ `str` ใจ `Enum` ใ‚’็ถ™ๆ‰ฟใ—ใŸใ‚ตใƒ–ใ‚ฏใƒฉใ‚นใ‚’ไฝœๆˆใ—ใพใ™ใ€‚
    
    `str` ใ‚’็ถ™ๆ‰ฟใ™ใ‚‹ใ“ใจใงใ€APIใƒ‰ใ‚ญใƒฅใƒกใƒณใƒˆใฏๅ€คใŒ `ๆ–‡ๅญ—ๅˆ—` ใงใชใ‘ใ‚Œใฐใ„ใ‘ใชใ„ใ“ใจใ‚’็Ÿฅใ‚Šใ€ๆญฃ็ขบใซใƒฌใƒณใƒ€ใƒชใƒณใ‚ฐใงใใ‚‹ใ‚ˆใ†ใซใชใ‚Šใพใ™ใ€‚
    
    ใใ—ใฆใ€ๅ›บๅฎšๅ€คใฎใ‚ฏใƒฉใ‚นๅฑžๆ€งใ‚’ไฝœใ‚Šใพใ™ใ€‚ใ™ใ‚‹ใจใ€ใใฎๅ€คใŒไฝฟ็”จๅฏ่ƒฝใชๅ€คใจใชใ‚Šใพใ™:
    
    ```Python hl_lines="1 6 7 8 9"
    {!../../docs_src/path_params/tutorial005.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. docs_src/query_params_str_validations/tutorial011_an_py310.py

    from typing import Annotated
    
    from fastapi import FastAPI, Query
    
    app = FastAPI()
    
    
    @app.get("/items/")
    async def read_items(q: Annotated[list[str] | None, Query()] = None):
        query_items = {"q": q}
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 224 bytes
    - Viewed (0)
Back to top