Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 971 - 980 of 1,096 for sltr (0.02 seconds)

  1. docs/zh/docs/tutorial/handling-errors.md

    ```JSON
    {
      "detail": "Item not found"
    }
    ```
    
    /// tip | 提示
    
    触发 `HTTPException` 时,可以用参数 `detail` 传递任何能转换为 JSON 的值,不仅限于 `str`。
    
    还支持传递 `dict`、`list` 等数据结构。
    
    **FastAPI** 能自动处理这些数据,并将之转换为 JSON。
    
    ///
    
    ## 添加自定义响应头 { #add-custom-headers }
    
    有些场景下要为 HTTP 错误添加自定义响应头。例如,出于某些类型的安全需要。
    
    一般情况下你可能不会在代码中直接使用它。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 8.2K bytes
    - Click Count (0)
  2. tensorflow/c/eager/c_api_experimental_test.cc

      auto* cell2 = TFE_MonitoringGetCellStringGauge2(gauge2, "foo", "bar");
      TFE_MonitoringStringGaugeCellSet(cell2, "str");
      auto* buf = new TF_Buffer;
      TFE_MonitoringStringGaugeCellValue(cell2, buf);
      string data(static_cast<const char*>(buf->data), buf->length);
      TF_DeleteBuffer(buf);
      EXPECT_EQ(data, "str");
      TFE_MonitoringDeleteStringGauge2(gauge2);
      TF_DeleteStatus(status);
    }
    
    TEST(CAPI, MonitoringSampler0) {
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 09 05:56:18 GMT 2025
    - 31.5K bytes
    - Click Count (0)
  3. docs/ja/docs/tutorial/response-model.md

    レスポンスモデルには次のようにデフォルト値を設定できます:
    
    {* ../../docs_src/response_model/tutorial004_py310.py hl[9,11:12] *}
    
    * `description: Union[str, None] = None`(またはPython 3.10では `str | None = None`)はデフォルトが `None` です。
    * `tax: float = 10.5` はデフォルトが `10.5` です。
    * `tags: List[str] = []` はデフォルトが空のリスト `[]` です。
    
    ただし、それらが実際には保存されていない場合、結果から省略したいことがあります。
    
    例えば、NoSQLデータベースに多くのオプション属性を持つモデルがあるが、デフォルト値でいっぱいの非常に長いJSONレスポンスを送信したくない場合です。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  4. cmd/object-api-utils.go

    // Comparison is case insensitive. Explicit short-circuit if
    // the list contains the wildcard "*".
    func hasStringSuffixInSlice(str string, list []string) bool {
    	str = strings.ToLower(str)
    	for _, v := range list {
    		if v == "*" {
    			return true
    		}
    
    		if strings.HasSuffix(str, strings.ToLower(v)) {
    			return true
    		}
    	}
    	return false
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Wed Jun 25 15:08:54 GMT 2025
    - 37.3K bytes
    - Click Count (0)
  5. docs/de/docs/_llm-test.md

    ////
    
    ## In der Dokumentation verwendete Begriffe { #terms-used-in-the-docs }
    
    //// tab | Test
    
    * Sie
    * Ihr
    
    * z. B.
    * usw.
    
    * `foo` vom Typ `int`
    * `bar` vom Typ `str`
    * `baz` vom Typ `list`
    
    * das Tutorial – Benutzerhandbuch
    * das Handbuch für fortgeschrittene Benutzer
    * die SQLModel-Dokumentation
    * die API-Dokumentation
    * die automatische Dokumentation
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  6. docs/ko/docs/tutorial/body-multiple-params.md

    ## 다중 본문 매개변수와 쿼리 { #multiple-body-params-and-query }
    
    물론, 필요할 때마다 어떤 본문 매개변수에 추가로 쿼리 매개변수도 선언할 수 있습니다.
    
    기본적으로 단일 값은 쿼리 매개변수로 해석되므로, 명시적으로 `Query`를 추가할 필요 없이 이렇게 하면 됩니다:
    
    ```Python
    q: str | None = None
    ```
    
    예를 들어:
    
    {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *}
    
    
    /// info | 정보
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:57:01 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  7. docs/zh/docs/tutorial/body-multiple-params.md

    }
    ```
    
    同样的,它将转换数据类型,校验,生成文档等。
    
    ## 多个请求体参数和查询参数 { #multiple-body-params-and-query }
    
    当然,除了请求体参数外,你还可以在任何需要的时候声明额外的查询参数。
    
    由于默认情况下单一值会被解释为查询参数,因此你不必显式地添加 `Query`,你可以这样写:
    
    ```Python
    q: str | None = None
    ```
    
    比如:
    
    {* ../../docs_src/body_multiple_params/tutorial004_an_py310.py hl[28] *}
    
    /// info | 信息
    
    `Body` 同样具有与 `Query`、`Path` 以及其他后面将看到的类完全相同的额外校验和元数据参数。
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  8. docs/pt/docs/environment-variables.md

    Isso significa que **qualquer valor** lido em Python de uma variável de ambiente **será uma `str`**, e qualquer conversão para um tipo diferente ou qualquer validação precisa ser feita no código.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  9. docs/ko/docs/environment-variables.md

    ///
    
    ## 타입과 검증 { #types-and-validation }
    
    이 환경변수들은 오직 **텍스트 문자열**로만 처리할 수 있습니다. 텍스트 문자열은 파이썬 외부에 있으며 다른 프로그램 및 나머지 시스템(그리고 Linux, Windows, macOS 같은 서로 다른 운영 체제에서도)과 호환되어야 합니다.
    
    즉, 파이썬에서 환경 변수로부터 읽은 **모든 값**은 **`str`**이 되고, 다른 타입으로의 변환이나 검증은 코드에서 수행해야 합니다.
    
    **애플리케이션 설정**을 처리하기 위한 환경 변수 사용에 대한 자세한 내용은 [고급 사용자 가이드 - 설정 및 환경 변수](./advanced/settings.md) 에서 확인할 수 있습니다.
    
    ## `PATH` 환경 변수 { #path-environment-variable }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:06:26 GMT 2026
    - 9K bytes
    - Click Count (0)
  10. docs/zh/docs/environment-variables.md

    ///
    
    ## 类型和验证 { #types-and-validation }
    
    这些环境变量只能处理**文本字符串**,因为它们是处于 Python 范畴之外的,必须与其他程序和操作系统的其余部分兼容(甚至与不同的操作系统兼容,如 Linux、Windows、macOS)。
    
    这意味着从环境变量中读取的**任何值**在 Python 中都将是一个 `str`,任何类型转换或验证都必须在代码中完成。
    
    你将在[高级用户指南 - 设置和环境变量](./advanced/settings.md)中了解更多关于使用环境变量处理**应用程序设置**的信息。
    
    ## `PATH` 环境变量 { #path-environment-variable }
    
    有一个**特殊的**环境变量称为 **`PATH`**,操作系统(Linux、macOS、Windows)用它来查找要运行的程序。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.8K bytes
    - Click Count (0)
Back to Top