Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1531 - 1540 of 2,827 for int3 (0.03 sec)

  1. docs/zh-hant/docs/index.md

    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    
    
    @app.put("/items/{item_id}")
    def update_item(item_id: int, item: Item):
        return {"item_name": item.name, "item_id": item_id}
    ```
    
    伺服器將自動重新載入(因為在上一步中,你向 `uvicorn` 指令添加了 `--reload` 的選項)。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  2. docs/em/docs/python-types.md

    ```
    
    ////
    
    //// tab | 🐍 3️⃣.9️⃣ & 🔛
    
    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial007_py39.py!}
    ```
    
    ////
    
    👉 ⛓:
    
    * 🔢 `items_t` `tuple` ⏮️ 3️⃣ 🏬, `int`, ➕1️⃣ `int`, & `str`.
    * 🔢 `items_s` `set`, & 🔠 🚮 🏬 🆎 `bytes`.
    
    ####  #️⃣
    
    🔬 `dict`, 👆 🚶‍♀️ 2️⃣ 🆎 🔢, 🎏 ❕.
    
    🥇 🆎 🔢 🔑 `dict`.
    
    🥈 🆎 🔢 💲 `dict`:
    
    //// tab | 🐍 3️⃣.6️⃣ & 🔛
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. docs/ru/docs/tutorial/body-nested-models.md

    ---
    
    Другой полезный случай - когда вы хотите чтобы ключи были другого типа данных, например, `int`.
    
    Именно это мы сейчас и увидим здесь.
    
    В этом случае вы принимаете `dict`, пока у него есть ключи типа `int` со значениями типа `float`:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="7"
    {!> ../../docs_src/body_nested_models/tutorial009_py39.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  4. docs/ko/docs/tutorial/body-nested-models.md

    일부 타입의 키와 다른 타입의 값을 사용하여 `dict`로 본문을 선언할 수 있습니다.
    
    (Pydantic을 사용한 경우처럼) 유효한 필드/어트리뷰트 이름이 무엇인지 알 필요가 없습니다.
    
    아직 모르는 키를 받으려는 경우 유용합니다.
    
    ---
    
    다른 유용한 경우는 다른 타입의 키를 가질 때입니다. 예. `int`.
    
    여기서 그 경우를 볼 것입니다.
    
    이 경우, `float` 값을 가진 `int` 키가 있는 모든 `dict`를 받아들입니다:
    
    ```Python hl_lines="15"
    {!../../docs_src/body_nested_models/tutorial009.py!}
    ```
    
    /// tip | "팁"
    
    JSON은 오직 `str`형 키만 지원한다는 것을 염두에 두세요.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/body-nested-models.md

    This would be useful if you want to receive keys that you don't already know.
    
    ---
    
    Another useful case is when you want to have keys of another type (e.g., `int`).
    
    That's what we are going to see here.
    
    In this case, you would accept any `dict` as long as it has `int` keys with `float` values:
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="7"
    {!> ../../docs_src/body_nested_models/tutorial009_py39.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/BaseEncoding.java

          }
        };
      }
    
      // Implementations for encoding/decoding
    
      abstract int maxEncodedSize(int bytes);
    
      abstract void encodeTo(Appendable target, byte[] bytes, int off, int len) throws IOException;
    
      abstract int maxDecodedSize(int chars);
    
      abstract int decodeTo(byte[] target, CharSequence chars) throws DecodingException;
    
      CharSequence trimTrailingPadding(CharSequence chars) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  7. cmd/erasure-sets.go

    	if cardinality <= 0 {
    		return -1
    	}
    	keyCrc := crc32.Checksum([]byte(key), crc32.IEEETable)
    	return int(keyCrc % uint32(cardinality))
    }
    
    func hashKey(algo string, key string, cardinality int, id [16]byte) int {
    	switch algo {
    	case formatErasureVersionV2DistributionAlgoV1:
    		return crcHashMod(key, cardinality)
    	case formatErasureVersionV3DistributionAlgoV2, formatErasureVersionV3DistributionAlgoV3:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 27 10:41:37 UTC 2024
    - 37K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_remote_test_util.cc

      std::vector<TFE_TensorHandle*> handles_task0;
      if (heavy_load_on_streaming_rpc) {
        // Send 50 tensor copy requests to simulate that there have been some RPC
        // requests been enqueued.
        for (int i = 0; i < 50; ++i) {
          handles_task0.push_back(TestMatrixTensorHandle(ctx));
        }
      }
      const char task1_name[] = "/job:localhost/replica:0/task:1/device:CPU:0";
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Dec 11 22:56:03 UTC 2020
    - 9.1K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java

         */
        private static int compareModelVersions(String first, String second) {
            // we use a dedicated comparator because we control our model version scheme.
            String[] firstSegments = first.split("\\.");
            String[] secondSegments = second.split("\\.");
            for (int i = 0; i < Math.max(firstSegments.length, secondSegments.length); i++) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 77.1K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/plugin/DefaultReportingConverter.java

    import org.apache.maven.model.Model;
    import org.apache.maven.model.building.ModelBuildingRequest;
    import org.apache.maven.model.building.ModelProblemCollector;
    
    /**
     * Handles conversion of the <code>&lt;reporting&gt;</code> section into the configuration of Maven Site Plugin 3.x,
     * i.e. <code>reportPlugins</code> and <code>outputDirectory</code> parameters.
     *
     * @deprecated since maven 4.0, this class is now a no-op class and is only here for compatibility
     */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top