Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 151 - 160 of 662 for gain (0.07 seconds)

  1. docs/zh-hant/docs/fastapi-cli.md

    ├── backend
    │   ├── main.py
    │   ├── __init__.py
    ```
    
    那麼你應該把 `entrypoint` 設為:
    
    ```toml
    [tool.fastapi]
    entrypoint = "backend.main:app"
    ```
    
    這等同於:
    
    ```python
    from backend.main import app
    ```
    
    ### 帶路徑的 `fastapi dev` { #fastapi-dev-with-path }
    
    你也可以把檔案路徑傳給 `fastapi dev` 指令,它會推測要使用的 FastAPI app 物件:
    
    ```console
    $ fastapi dev main.py
    ```
    
    但這樣每次呼叫 `fastapi` 指令時都得記得傳入正確的路徑。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  2. docs/ja/docs/tutorial/testing.md

    ```
    .
    ├── app
    │   ├── __init__.py
    │   └── main.py
    ```
    
    ファイル `main.py` に **FastAPI** アプリがあります:
    
    
    {* ../../docs_src/app_testing/app_a_py310/main.py *}
    
    ### テストファイル { #testing-file }
    
    次に、テストを含む `test_main.py` ファイルを用意できます。これは同じ Python パッケージ (`__init__.py` ファイルがある同じディレクトリ) に置けます:
    
    ``` hl_lines="5"
    .
    ├── app
    │   ├── __init__.py
    │   ├── main.py
    │   └── test_main.py
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java

     *
     * <p>The {@code Iterable} specification does not make it absolutely clear what should happen on a
     * second invocation, so implementors have made various choices, including:
     *
     * <ul>
     *   <li>returning the same iterator again
     *   <li>throwing an exception of some kind
     *   <li>or the usual, <i>robust</i> behavior, which all known {@link Collection} implementations
     *       have, of returning a new, independent iterator
     * </ul>
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  4. src/test/java/jcifs/BufferCacheTest.java

        @DisplayName("releaseBuffer and getBuffer should implement buffer reuse")
        void testBufferReuse() {
            // Given
            byte[] originalBuffer = testCache.getBuffer();
    
            // When - release and get again
            testCache.releaseBuffer(originalBuffer);
            byte[] reusedBuffer = testCache.getBuffer();
    
            // Then
            assertSame(originalBuffer, reusedBuffer, "Released buffer should be reused");
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  5. docs/zh-hant/docs/deployment/manually.md

    ```
    
    </div>
    
    /// note
    
    指令 `uvicorn main:app` 指的是:
    
    * `main`:檔案 `main.py`(Python「模組」)。
    * `app`:在 `main.py` 中以 `app = FastAPI()` 建立的物件。
    
    等同於:
    
    ```Python
    from main import app
    ```
    
    ///
    
    其他 ASGI 伺服器也有類似的指令,詳見各自的文件。
    
    /// warning
    
    Uvicorn 與其他伺服器支援 `--reload` 選項,對開發期間很有幫助。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 6.2K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/response-status-code.md

    ///
    
    ## Shortcut to remember the names { #shortcut-to-remember-the-names }
    
    Let's see the previous example again:
    
    {* ../../docs_src/response_status_code/tutorial001_py310.py hl[6] *}
    
    `201` is the status code for "Created".
    
    But you don't have to memorize what each of these codes mean.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 3.9K bytes
    - Click Count (0)
  7. cmd/callhome.go

    				return
    			}
    
    			if !runCallhome(ctx, objAPI) {
    				// callhome was disabled or context was canceled
    				return
    			}
    
    			// callhome running on a different node.
    			// sleep for some time and try again.
    			duration := max(time.Duration(r.Float64()*float64(globalCallhomeConfig.FrequencyDur())),
    				// Make sure to sleep at least a second to avoid high CPU ticks.
    				time.Second)
    			time.Sleep(duration)
    		}
    	}()
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  8. src/main/resources/fess_label.properties

    labels.chat_error=An error occurred. Please try again.
    labels.chat_error_rate_limit=It's currently busy. Please wait a moment and try again.
    labels.chat_error_auth=AI service authentication failed. Please contact the administrator.
    labels.chat_error_service_unavailable=The AI service is temporarily unavailable. Please try again later.
    labels.chat_error_timeout=The request timed out. Please try again.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 11:54:13 GMT 2026
    - 48.9K bytes
    - Click Count (0)
  9. docs/de/docs/environment-variables.md

    ```console
    // Hier setzen wir die Umgebungsvariable noch nicht
    $ python main.py
    
    // Da wir die Umgebungsvariable nicht gesetzt haben, erhalten wir den Defaultwert
    
    Hello World from Python
    
    // Aber wenn wir zuerst eine Umgebungsvariable erstellen
    $ export MY_NAME="Wade Wilson"
    
    // Und dann das Programm erneut aufrufen
    $ python main.py
    
    // Jetzt kann es die Umgebungsvariable lesen
    
    Hello Wade Wilson from Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 8.8K bytes
    - Click Count (0)
  10. docs/zh/docs/deployment/manually.md

    ```
    
    </div>
    
    /// note | 注意
    
    命令 `uvicorn main:app` 的含义如下:
    
    * `main`:指的是 `main.py` 文件(即 Python “模块”)。
    * `app`:指的是 `main.py` 文件中通过 `app = FastAPI()` 创建的对象。
    
    它等价于以下导入语句:
    
    ```Python
    from main import app
    ```
    
    ///
    
    每种 ASGI 服务器程序通常都会有类似的命令,您可以在它们的官方文档中找到更多信息。
    
    /// warning | 警告
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 6.7K bytes
    - Click Count (0)
Back to Top