Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 381 - 390 of 664 for ITEM (0.02 seconds)

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

  1. docs/zh-hant/docs/python-types.md

    在這個例子中,`str` 是傳給 `list` 的型別參數。
    
    ///
    
    這表示:「變數 `items` 是一個 `list`,而這個清單中的每個元素都是 `str`」。
    
    這麼做之後,你的編輯器甚至在處理清單裡的項目時也能提供支援:
    
    <img src="/img/python-types/image05.png">
    
    沒有型別時,幾乎不可能做到這點。
    
    請注意,變數 `item` 是清單 `items` 中的一個元素。
    
    即便如此,編輯器仍然知道它是 `str`,並提供相應的支援。
    
    #### Tuple 與 Set { #tuple-and-set }
    
    你也可以用相同方式來宣告 `tuple` 與 `set`:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    這代表:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  2. internal/store/batch_test.go

    	defer batch.Close()
    
    	var wg sync.WaitGroup
    	for i := 0; i < int(limit); i++ {
    		wg.Add(1)
    		go func(key int) {
    			defer wg.Done()
    			if err := batch.Add(testItem); err != nil {
    				t.Errorf("failed to add item %v; %v", key, err)
    				return
    			}
    		}(i)
    	}
    	wg.Wait()
    
    	batchLen := batch.Len()
    	if batchLen != int(limit) {
    		t.Fatalf("Expected batch.Len() %v; but got %v", limit, batchLen)
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  3. docs/ko/docs/advanced/generate-clients.md

    ## TypeScript SDK 만들기 { #create-a-typescript-sdk }
    
    간단한 FastAPI 애플리케이션으로 시작해 보겠습니다:
    
    {* ../../docs_src/generate_clients/tutorial001_py310.py hl[7:9,12:13,16:17,21] *}
    
    *경로 처리*에서 요청 페이로드와 응답 페이로드에 사용하는 모델을 `Item`, `ResponseMessage` 모델로 정의하고 있다는 점에 주목하세요.
    
    ### API 문서 { #api-docs }
    
    `/docs`로 이동하면, 요청으로 보낼 데이터와 응답으로 받을 데이터에 대한 **스키마(schemas)**가 있는 것을 볼 수 있습니다:
    
    <img src="/img/tutorial/generate-clients/image01.png">
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 11K bytes
    - Click Count (0)
  4. docs/zh/docs/tutorial/body-updates.md

    但本指南会大致展示它们的预期用法。
    
    ///
    
    ### 使用 Pydantic 的 `exclude_unset` 参数 { #using-pydantics-exclude-unset-parameter }
    
    如果要接收部分更新,建议在 Pydantic 模型的 `.model_dump()` 中使用 `exclude_unset` 参数。
    
    比如,`item.model_dump(exclude_unset=True)`。
    
    这会生成一个 `dict`,只包含创建 `item` 模型时显式设置的数据,不包含默认值。
    
    然后再用它生成一个只含已设置(在请求中发送)数据、且省略默认值的 `dict`:
    
    {* ../../docs_src/body_updates/tutorial002_py310.py hl[32] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/tutorial/body-updates.md

    但本指南會大致示範它們各自的設計用法。
    
    ///
    
    ### 使用 Pydantic 的 `exclude_unset` 參數 { #using-pydantics-exclude-unset-parameter }
    
    如果要接收部分更新,在 Pydantic 模型的 `.model_dump()` 中使用 `exclude_unset` 參數非常實用。
    
    例如 `item.model_dump(exclude_unset=True)`。
    
    這會產生一個只包含建立 `item` 模型時實際設定過之欄位的 `dict`,不含預設值。
    
    接著你可以用它來生成只包含實際設定(請求中傳來)的資料之 `dict`,省略預設值:
    
    {* ../../docs_src/body_updates/tutorial002_py310.py hl[32] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  6. fastapi/applications.py

            from fastapi import FastAPI
            from pydantic import BaseModel
    
            class Item(BaseModel):
                name: str
                description: str | None = None
    
            app = FastAPI()
    
            @app.put("/items/{item_id}")
            def replace_item(item_id: str, item: Item):
                return {"message": "Item replaced", "id": item_id}
            ```
            """
            return self.router.put(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 01 16:16:24 GMT 2026
    - 178.6K bytes
    - Click Count (0)
  7. docs/en/docs/advanced/response-directly.md

    ///
    
    ## Returning a custom `Response` { #returning-a-custom-response }
    
    The example above shows all the parts you need, but it's not very useful yet, as you could have just returned the `item` directly, and **FastAPI** would put it in a `JSONResponse` for you, converting it to a `dict`, etc. All that by default.
    
    Now, let's see how you could use that to return a custom response.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

            final String data = "<html><head><title>&#214;sterreich</title></head><body></body></html>";
            final Document document = getDocument(data);
            final String title = document.getElementsByTagName("TITLE").item(0).getTextContent();
            assertEquals("\u00D6sterreich", title);
        }
    
        @Test
        public void test_htmlEntity_numericHex() throws Exception {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 62.9K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        // Each group is a List of items, each item has a list of factory args.
        List<List<List<Object>>> argGroups = new ArrayList<>();
        argGroups.add(ImmutableList.of(args, equalArgs));
        EqualsTester tester =
            new EqualsTester(
                /* itemReporter= */ item -> {
                  List<Object> factoryArgs = argGroups.get(item.groupNumber).get(item.itemNumber);
                  return factory.getName()
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/Constants.java

        // Item/Field Identifiers
        // ============================================================
    
        /** Item property key for label field. */
        public static final String ITEM_LABEL = "label";
    
        /** Item property key for value field. */
        public static final String ITEM_VALUE = "value";
    
        /** Item property key for name field. */
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:55:54 GMT 2026
    - 35.8K bytes
    - Click Count (0)
Back to Top