Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 5871 - 5880 of 6,226 for RETURN (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/zh-hant/docs/tutorial/path-params.md

    {* ../../docs_src/path_params/tutorial005_py310.py hl[20] *}
    
    /// tip
    
    你也可以用 `ModelName.lenet.value` 取得值 `"lenet"`。
    
    ///
    
    #### 回傳「列舉成員」 { #return-enumeration-members }
    
    你可以從「路徑操作」回傳「列舉成員」,即使是巢狀在 JSON 主體(例如 `dict`)裡。
    
    在回傳給用戶端之前,它們會被轉成對應的值(此例為字串):
    
    {* ../../docs_src/path_params/tutorial005_py310.py hl[18,21,23] *}
    
    你的用戶端會收到像這樣的 JSON 回應:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  2. docs/tr/docs/tutorial/first-steps.md

    /// note | Not
    
    Eğer farkı bilmiyorsanız, [Async: *"Aceleniz mi var?"*](../async.md#in-a-hurry) sayfasına bakın.
    
    ///
    
    ### Adım 5: içeriği döndürün { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    Bir `dict`, `list`, `str`, `int` vb. tekil değerler döndürebilirsiniz.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 07:53:17 GMT 2026
    - 14.4K bytes
    - Click Count (0)
  3. docs/zh/docs/features.md

    编写带有类型标注的标准 Python:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # 将变量声明为 str
    # 并在函数内获得编辑器支持
    def main(user_id: str):
        return user_id
    
    
    # 一个 Pydantic 模型
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    可以像这样来使用:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  4. docs/ru/docs/tutorial/first-steps.md

    /// note | Примечание
    
    Если вы не знаете, в чём разница, посмотрите [Асинхронность: *"Нет времени?"*](../async.md#in-a-hurry).
    
    ///
    
    ### Шаг 5: верните содержимое { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    Вы можете вернуть `dict`, `list`, отдельные значения `str`, `int` и т.д.
    
    Также можно вернуть модели Pydantic (подробнее об этом позже).
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:56:20 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/features.md

    如果你寫帶有 Python 型別的程式碼:
    
    ```Python
    from datetime import date
    
    from pydantic import BaseModel
    
    # 宣告一個變數為 string
    # 並在函式中獲得 editor support
    def main(user_id: str):
        return user_id
    
    
    # 宣告一個 Pydantic model
    class User(BaseModel):
        id: int
        name: str
        joined: date
    ```
    
    可以像這樣來使用:
    
    ```Python
    my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 9.2K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/suggest/entity/ElevateWordTest.java

            assertNotNull(suggestItem);
            assertEquals(Float.MAX_VALUE, suggestItem.getUserBoost(), 0.001f);
        }
    
        @Test
        public void testGettersWithMutableLists() {
            // Test that getters return the same list references
            String word = "mutable test";
            float boost = 1.0f;
            List<String> readings = new ArrayList<>();
            readings.add("reading1");
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 16K bytes
    - Click Count (0)
  7. internal/ringbuffer/ring_buffer_test.go

    	cc := make(chan struct{})
    	go func() {
    		select {
    		case <-cc:
    			return
    		case <-c:
    			buf := make([]byte, 1<<20)
    			stacklen := runtime.Stack(buf, true)
    			fmt.Printf("=== Timeout, assuming deadlock ===\n*** goroutine dump...\n%s\n*** end\n", string(buf[:stacklen]))
    			os.Exit(2)
    		}
    	}()
    	return func() {
    		close(cc)
    	}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  8. docs/ko/docs/deployment/docker.md

    * 다음 내용으로 `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 14:06:26 GMT 2026
    - 32.6K bytes
    - Click Count (0)
  9. src/test/java/jcifs/dcerpc/rpcTest.java

                uuid.clock_seq_low = (byte) 0x22;
                uuid.node = new byte[] { (byte) 0xAA, (byte) 0xBB, (byte) 0xCC, (byte) 0xDD, (byte) 0xEE, (byte) 0xFF };
    
                // Mock the derive method to return a buffer for node encoding
                when(mockNdrBuffer.derive(anyInt())).thenReturn(mockNdrBuffer);
    
                // When: Encoding the UUID
                uuid.encode(mockNdrBuffer);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            // Verify token length is 0
            assertEquals(0, SMBUtil.readInt2(buffer, bodyOffset + 14));
        }
    
        @Test
        @DisplayName("Should always return 0 for readBytesWireFormat")
        void testReadBytesWireFormat() {
            // Given
            byte[] buffer = createTestData(256);
    
            // When
            int bytesRead = request.readBytesWireFormat(buffer, 0);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
Back to Top