Search Options

Results per page
Sort
Preferred Languages
Advance

Results 841 - 850 of 983 for iter (0.06 sec)

  1. docs/ru/docs/python-types.md

    <img src="/img/python-types/image05.png">
    
    Без типов добиться этого практически невозможно.
    
    Обратите внимание, что переменная `item` является одним из элементов списка `items`.
    
    И все же редактор знает, что это `str`, и поддерживает это.
    
    #### `Tuple` и `Set`
    
    Вы бы сделали то же самое, чтобы объявить `tuple` и `set`:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. docs/de/docs/tutorial/body-nested-models.md

    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="9  14  20  23  27"
    {!> ../../docs_src/body_nested_models/tutorial007.py!}
    ```
    
    ////
    
    /// info
    
    Beachten Sie, wie `Offer` eine Liste von `Item`s hat, von denen jedes seinerseits eine optionale Liste von `Image`s hat.
    
    ///
    
    ## Bodys aus reinen Listen
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. docs/zh/docs/advanced/generate-clients.md

    ```
    
    ////
    
    //// tab | Python 3.8+
    
    ```Python hl_lines="9-11  14-15  18  19  23"
    {!> ../../docs_src/generate_clients/tutorial001.py!}
    ```
    
    ////
    
    请注意,*路径操作* 定义了他们所用于请求数据和回应数据的模型,所使用的模型是`Item` 和 `ResponseMessage`。
    
    ### API 文档
    
    如果您访问API文档,您将看到它具有在请求中发送和在响应中接收数据的**模式(schemas)**:
    
    <img src="/img/tutorial/generate-clients/image01.png">
    
    您可以看到这些模式,因为它们是用程序中的模型声明的。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. docs/ja/docs/advanced/response-directly.md

    **FastAPI** は開発者の利便性のために `fastapi.responses` という `starlette.responses` と同じものを提供しています。しかし、利用可能なレスポンスのほとんどはStarletteから直接提供されます。
    
    ///
    
    ## カスタム `Response` を返す
    
    上記の例では必要な部分を全て示していますが、あまり便利ではありません。`item` を直接返すことができるし、**FastAPI** はそれを `dict` に変換して `JSONResponse` に含めてくれるなど。すべて、デフォルトの動作です。
    
    では、これを使ってカスタムレスポンスをどう返すか見てみましょう。
    
    <a href="https://en.wikipedia.org/wiki/XML" class="external-link" target="_blank">XML</a>レスポンスを返したいとしましょう。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. 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(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  6. docs/pt/docs/advanced/additional-status-codes.md

    Por exemplo, vamos dizer que você deseja ter uma *operação de caminho* que permita atualizar itens, e retornar um código de status HTTP 200 "OK" quando for bem sucedido.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. src/main/webapp/WEB-INF/view/admin/joblog/admin_joblog.jsp

                            </h1>
                        </div>
                        <div class="col-sm-6">
                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item active"><la:link href="/admin/joblog">
                                    <la:message key="labels.joblog_link_list"/>
                                </la:link></li>
                            </ol>
                        </div>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 13 07:47:04 UTC 2020
    - 11.4K bytes
    - Viewed (0)
  8. docs/de/docs/advanced/websockets.md

    ```
    
    </div>
    
    Öffnen Sie Ihren Browser unter <a href="http://127.0.0.1:8000" class="external-link" target="_blank">http://127.0.0.1:8000</a>.
    
    Dort können Sie einstellen:
    
    * Die „Item ID“, die im Pfad verwendet wird.
    * Das „Token“, das als Query-Parameter verwendet wird.
    
    /// tip | "Tipp"
    
    Beachten Sie, dass der Query-„Token“ von einer Abhängigkeit verarbeitet wird.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/graph/DefaultGraphBuilder.java

    import org.apache.maven.project.collector.RequestPomCollectionStrategy;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import static java.util.Comparator.comparing;
    
    /**
     * Builds the {@link ProjectDependencyGraph inter-dependencies graph} between projects in the reactor.
     */
    @Named(GraphBuilder.HINT)
    @Singleton
    public class DefaultGraphBuilder implements GraphBuilder {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/lex/lex_test.go

    		}
    		buf.WriteString(input.Text())
    	}
    }
    
    type badLexTest struct {
    	input string
    	error string
    }
    
    var badLexTests = []badLexTest{
    	{
    		"3 #define foo bar\n",
    		"'#' must be first item on line",
    	},
    	{
    		"#ifdef foo\nhello",
    		"unclosed #ifdef or #ifndef",
    	},
    	{
    		"#ifndef foo\nhello",
    		"unclosed #ifdef or #ifndef",
    	},
    	{
    		"#ifdef foo\nhello\n#else\nbye",
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top