Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 951 - 960 of 1,290 for Funktion (0.05 seconds)

  1. docs/pt/docs/advanced/events.md

    /// tip | Dica
    
    O `shutdown` aconteceria quando você estivesse **encerrando** a aplicação.
    
    Talvez você precise iniciar uma nova versão, ou apenas cansou de executá-la. 🤷
    
    ///
    
    ### Função lifespan { #lifespan-function }
    
    A primeira coisa a notar é que estamos definindo uma função assíncrona com `yield`. Isso é muito semelhante a Dependências com `yield`.
    
    {* ../../docs_src/events/tutorial003_py310.py hl[14:19] *}
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 8.7K bytes
    - Click Count (0)
  2. docs/zh-hant/docs/how-to/custom-docs-ui-assets.md

    你應該會看到一個很長的 **ReDoc** JavaScript 檔案。
    
    它可能會以如下內容開頭:
    
    ```JavaScript
    /*! For license information please see redoc.standalone.js.LICENSE.txt */
    !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("null")):
    ...
    ```
    
    這表示你的應用已能提供靜態檔案,且文件用的靜態檔已放在正確位置。
    
    接著把應用設定為讓文件使用這些靜態檔。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/request-files.md

    但請記住,當你從 `fastapi` 匯入 `Query`、`Path`、`File` 等時,它們其實是回傳特殊類別的函式。
    
    ///
    
    /// tip
    
    要宣告檔案本文,必須使用 `File`,否則參數會被解讀為查詢參數或本文(JSON)參數。
    
    ///
    
    檔案會以「表單資料」上傳。
    
    如果你將路徑操作函式(path operation function)的參數型別宣告為 `bytes`,**FastAPI** 會替你讀取檔案,你會以 `bytes` 取得內容。
    
    請注意,這表示整個內容會存放在記憶體中,適合小檔案。
    
    但在許多情況下,使用 `UploadFile` 會更好。
    
    ## 使用 `UploadFile` 的檔案參數 { #file-parameters-with-uploadfile }
    
    將檔案參數型別設為 `UploadFile`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.6K bytes
    - Click Count (0)
  4. cmd/utils_test.go

    		}
    		if !testCase.shouldPass && err == nil {
    			t.Errorf("Test %d: expected to fail but passed.", i+1)
    		}
    	}
    }
    
    // Testing dumping request function.
    func TestDumpRequest(t *testing.T) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  5. internal/s3select/sql/statement.go

    		if err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // Eval - evaluates the Select statement for the given record. It
    // applies only to non-aggregation queries.
    // The function returns whether the statement passed the WHERE clause and should be outputted.
    func (e *SelectStatement) Eval(input, output Record) (Record, error) {
    	ok, err := e.isPassingWhereClause(input)
    	if err != nil || !ok {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 9K bytes
    - Click Count (0)
  6. cmd/metrics-v3.go

    		debugGoCollectorPath: collectors.NewGoCollector(),
    	}
    
    	// Add all `MetricGroup` collectors to the map.
    	for _, mg := range allMetricGroups {
    		collectors[mg.CollectorPath] = mg
    	}
    
    	// Helper function to register a collector and return a gatherer for it.
    	mustRegister := func(c ...prometheus.Collector) prometheus.Gatherer {
    		subRegistry := prometheus.NewRegistry()
    		for _, col := range c {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 02 00:55:27 GMT 2024
    - 13.6K bytes
    - Click Count (0)
  7. internal/logger/logrotate.go

    	return os.Remove(oldLgFile)
    }
    
    func (w *Writer) rotate() error {
    	if w.f != nil {
    		if err := w.closeCurrentFile(); err != nil {
    			return err
    		}
    
    		// This function is a no-op if opts.Compress is false
    		// writes an error in JSON form to stderr, if we cannot
    		// compress.
    		if err := w.compress(); err != nil {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Mar 30 00:56:02 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

     *
     * <p>{@code containsKey(k)}, {@code put(k, v)} and {@code remove(k)} are all (expected and
     * amortized) constant time operations. Expected in the hashtable sense (depends on the hash
     * function doing a good job of distributing the elements to the buckets to a distribution not far
     * from uniform), and amortized since some operations can trigger a hash table resize.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 14:59:07 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/math/MathTesting.java

      static final ImmutableList<RoundingMode> ALL_SAFE_ROUNDING_MODES =
          ImmutableList.of(DOWN, UP, FLOOR, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN);
    
      // Exponents to test for the pow() function.
      static final ImmutableList<Integer> EXPONENTS =
          ImmutableList.of(0, 1, 2, 3, 4, 7, 10, 15, 20, 25, 40, 70);
    
      /*
       * This list contains values that attempt to provoke overflow in integer operations. It contains
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 9.9K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/extra-models.md

        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### Unpacking a `dict` { #unpacking-a-dict }
    
    If we take a `dict` like `user_dict` and pass it to a function (or class) with `**user_dict`, Python will "unpack" it. It will pass the keys and values of the `user_dict` directly as key-value arguments.
    
    So, continuing with the `user_dict` from above, writing:
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 6.7K bytes
    - Click Count (0)
Back to Top