Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 101 for tuple (0.08 seconds)

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

    沒有型別時,幾乎不可能做到這點。
    
    請注意,變數 `item` 是清單 `items` 中的一個元素。
    
    即便如此,編輯器仍然知道它是 `str`,並提供相應的支援。
    
    #### Tuple 與 Set { #tuple-and-set }
    
    你也可以用相同方式來宣告 `tuple` 與 `set`:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    這代表:
    
    * 變數 `items_t` 是一個有 3 個項目的 `tuple`,分別是 `int`、`int` 和 `str`。
    * 變數 `items_s` 是一個 `set`,而其中每個項目都是 `bytes` 型別。
    
    #### Dict { #dict }
    
    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. src/main/java/org/codelibs/fess/thumbnail/ThumbnailGenerator.java

        /**
         * Creates a thumbnail generation task.
         * @param path The path to the source document.
         * @param docMap The document map containing metadata.
         * @return A tuple containing task information.
         */
        Tuple3<String, String, String> createTask(String path, Map<String, Object> docMap);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  3. docs/zh/docs/python-types.md

    没有类型的话,这几乎是不可能做到的。
    
    注意,变量 `item` 是列表 `items` 中的一个元素。
    
    即便如此,编辑器仍然知道它是 `str`,并为此提供支持。
    
    #### 元组和集合 { #tuple-and-set }
    
    声明 `tuple` 和 `set` 的方式类似:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    这表示:
    
    * 变量 `items_t` 是一个含有 3 个元素的 `tuple`,分别是一个 `int`、另一个 `int`,以及一个 `str`。
    * 变量 `items_s` 是一个 `set`,其中每个元素的类型是 `bytes`。
    
    #### 字典 { #dict }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.6K bytes
    - Click Count (0)
  4. docs/ja/docs/python-types.md

    変数 `item` はリスト `items` の要素の一つであることに注意してください。
    
    それでも、エディタはそれが `str` であることを知っていて、そのためのサポートを提供しています。
    
    #### Tuple と Set { #tuple-and-set }
    
    `tuple` と `set` の宣言も同様です:
    
    {* ../../docs_src/python_types/tutorial007_py310.py hl[1] *}
    
    つまり:
    
    * 変数 `items_t` は `int`、別の `int`、`str` の 3 つの項目を持つ `tuple` です。
    * 変数 `items_s` は `set` であり、その各項目は `bytes` 型です。
    
    #### Dict { #dict }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 14.3K bytes
    - Click Count (0)
  5. tests/test_invalid_sequence_param.py

            match="Query parameter 'q' must be one of the supported types",
        ):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/")
            def read_items(q: tuple[Item, Item] = Query(default=None)):
                pass  # pragma: no cover
    
    
    def test_invalid_dict():
        with pytest.raises(
            AssertionError,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 1.5K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/query-params-str-validations.md

    Did you notice? a string using `value.startswith()` can take a tuple, and it will check each value in the tuple:
    
    {* ../../docs_src/query_params_str_validations/tutorial015_an_py310.py ln[16:19] hl[17] *}
    
    #### A Random Item { #a-random-item }
    
    With `data.items()` we get an <dfn title="Something we can iterate on with a for loop, like a list, set, etc.">iterable object</dfn> with tuples containing the key and value for each dictionary item.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 16.3K bytes
    - Click Count (0)
  7. api/go1.5.txt

    pkg go/types, method (*Struct) Tag(int) string
    pkg go/types, method (*Struct) Underlying() Type
    pkg go/types, method (*Tuple) At(int) *Var
    pkg go/types, method (*Tuple) Len() int
    pkg go/types, method (*Tuple) String() string
    pkg go/types, method (*Tuple) Underlying() Type
    pkg go/types, method (*TypeName) Exported() bool
    pkg go/types, method (*TypeName) Id() string
    pkg go/types, method (*TypeName) Name() string
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Click Count (0)
  8. scripts/translation_fixer.py

            lang_path_root / "how-to",
        ]
        first_parent = lang_path_root
        yield from first_parent.glob("*.md")
        for dir_path in first_dirs:
            yield from dir_path.rglob("*.md")
        first_dirs_str = tuple(str(d) for d in first_dirs)
        for path in lang_path_root.rglob("*.md"):
            if str(path).startswith(first_dirs_str):
                continue
            if path.parent == first_parent:
                continue
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Jan 10 21:48:08 GMT 2026
    - 3.2K bytes
    - Click Count (0)
  9. fastapi/dependencies/models.py

                if scope not in scopes:
                    scopes.append(scope)
            return scopes
    
        @cached_property
        def cache_key(self) -> DependencyCacheKey:
            scopes_for_cache = (
                tuple(sorted(set(self.oauth_scopes or []))) if self._uses_scopes else ()
            )
            return (
                self.call,
                scopes_for_cache,
                self.computed_scope or "",
            )
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 11 18:41:21 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  10. tensorflow/c/eager/gradients_test.cc

    namespace gradients {
    namespace internal {
    namespace {
    using std::vector;
    using tensorflow::TF_StatusPtr;
    using tracing::TracingOperation;
    
    class CppGradients
        : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> {
     protected:
      void SetUp() override {
        TF_StatusPtr status(TF_NewStatus());
        TF_SetTracingImplementation(std::get<0>(GetParam()), status.get());
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat Oct 12 05:11:17 GMT 2024
    - 7K bytes
    - Click Count (0)
Back to Top