Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 3061 - 3070 of 3,163 for rint (0.17 seconds)

  1. docs/zh-hant/docs/advanced/custom-response.md

    ///
    
    ### `Response` { #response }
    
    主要的 `Response` 類別,其他回應皆繼承自它。
    
    你也可以直接回傳它。
    
    它接受以下參數:
    
    - `content` - `str` 或 `bytes`。
    - `status_code` - `int` 類型的 HTTP 狀態碼。
    - `headers` - 由字串組成的 `dict`。
    - `media_type` - 描述 media type 的 `str`。例如 `"text/html"`。
    
    FastAPI(實際上是 Starlette)會自動包含 Content-Length 標頭。也會根據 `media_type`(並為文字型別附加 charset)包含 Content-Type 標頭。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  2. cmd/metrics-resource.go

    	// cumulative value with previous one
    	Cumulative float64
    
    	Max   float64
    	Avg   float64
    	Sum   float64
    	Count uint64
    }
    
    func init() {
    	interval := fmt.Sprintf("%ds", int(resourceMetricsCollectionInterval.Seconds()))
    	resourceMetricsHelpMap = map[MetricName]string{
    		interfaceRxBytes:  "Bytes received on the interface in " + interval,
    		interfaceRxErrors: "Receive errors in " + interval,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 10 18:57:03 GMT 2025
    - 17.2K bytes
    - Click Count (0)
  3. cmd/metacache-set_gen.go

    				return
    			}
    		}
    	}
    	o = bts
    	return
    }
    
    // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
    func (z *listPathOptions) Msgsize() (s int) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 13.8K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

        val response2 = call2.execute()
        assertThat(response2.body.string()).isEqualTo("abc")
      }
    
      /** Wait for the client to receive `dataLength` DATA frames.  */
      private fun waitForDataFrames(dataLength: Int) {
        val expectedFrameCount = dataLength / 16384
        var dataFrameCount = 0
        while (dataFrameCount < expectedFrameCount) {
          val log = testLogHandler.take()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 67.5K bytes
    - Click Count (0)
  5. docs/es/docs/tutorial/first-steps.md

    ///
    
    ### Paso 5: retorna el contenido { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    Puedes retornar un `dict`, `list`, valores singulares como `str`, `int`, etc.
    
    También puedes retornar modelos de Pydantic (verás más sobre eso más adelante).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 13.9K bytes
    - Click Count (0)
  6. docs/fr/docs/tutorial/first-steps.md

    ///
    
    ### Étape 5 : retourner le contenu { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    Vous pouvez retourner un `dict`, une `list`, des valeurs uniques comme `str`, `int`, etc.
    
    Vous pouvez également retourner des modèles Pydantic (vous en verrez plus à ce sujet plus tard).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 15.1K bytes
    - Click Count (0)
  7. docs/ja/docs/tutorial/body.md

    **FastAPI** はそれぞれを認識し、正しい場所からデータを取得します。
    
    {* ../../docs_src/body/tutorial004_py310.py hl[16] *}
    
    関数パラメータは以下のように認識されます:
    
    * パラメータが **path** でも宣言されている場合、パスパラメータとして使用されます。
    * パラメータが **単数型**(`int`、`float`、`str`、`bool` など)の場合、**query** パラメータとして解釈されます。
    * パラメータが **Pydanticモデル** の型として宣言されている場合、リクエスト **body** として解釈されます。
    
    /// note | 備考
    
    FastAPIは、デフォルト値 `= None` があるため、`q` の値が必須ではないことを認識します。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  8. docs/pt/docs/tutorial/first-steps.md

    ///
    
    ### Passo 5: retorne o conteúdo { #step-5-return-the-content }
    
    {* ../../docs_src/first_steps/tutorial001_py310.py hl[8] *}
    
    Você pode retornar um `dict`, `list` e valores singulares como `str`, `int`, etc.
    
    Você também pode devolver modelos Pydantic ( você verá mais sobre isso mais tarde).
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  9. docs/zh/docs/advanced/settings.md

    如果你想要一个可以快速复制粘贴的示例,请不要使用这个示例,使用下面最后一个示例。
    
    ///
    
    当你创建该 `Settings` 类的实例(此处是 `settings` 对象)时,Pydantic 会以不区分大小写的方式读取环境变量,因此,大写变量 `APP_NAME` 仍会用于属性 `app_name`。
    
    接着它会转换并验证数据。因此,当你使用该 `settings` 对象时,你将获得你声明的类型的数据(例如 `items_per_user` 将是 `int`)。
    
    ### 使用 `settings` { #use-the-settings }
    
    然后你可以在应用中使用新的 `settings` 对象:
    
    {* ../../docs_src/settings/tutorial001_py310.py hl[18:20] *}
    
    ### 运行服务器 { #run-the-server }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 10.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/io/MoreFiles.java

        Path name = path.getFileName();
    
        // null for empty paths and root-only paths
        if (name == null) {
          return "";
        }
    
        String fileName = name.toString();
        int dotIndex = fileName.lastIndexOf('.');
        return dotIndex == -1 ? "" : fileName.substring(dotIndex + 1);
      }
    
      /**
       * Returns the file name without its <a
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 16:07:06 GMT 2025
    - 34.6K bytes
    - Click Count (0)
Back to Top