Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 321 - 330 of 424 for myprint (0.05 seconds)

  1. docs/zh-hant/docs/python-types.md

    ### `typing` 模組 { #typing-module }
    
    在一些其他情境中,你可能需要從標準程式庫的 `typing` 模組匯入一些東西,比如當你想宣告某個東西可以是「任何型別」時,可以用 `typing` 裡的 `Any`:
    
    ```python
    from typing import Any
    
    
    def some_function(data: Any):
        print(data)
    ```
    
    ### 泛型(Generic types) { #generic-types }
    
    有些型別可以在方括號中接收「型別參數」,以定義其內部元素的型別,例如「字串的 list」可以宣告為 `list[str]`。
    
    這些能接收型別參數的型別稱為「泛型(Generic types)」或「Generics」。
    
    你可以將相同的內建型別用作泛型(使用方括號並在裡面放型別):
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    “上下文管理器”是你可以在 `with` 语句中使用的任意 Python 对象。
    
    例如,[你可以用 `with` 来读取文件](https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files):
    
    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    在底层,`open("./somefile.txt")` 会创建一个“上下文管理器”对象。
    
    当 `with` 代码块结束时,它会确保文件被关闭,即使期间发生了异常。
    
    当你用 `yield` 创建一个依赖时,**FastAPI** 会在内部为它创建一个上下文管理器,并与其他相关工具结合使用。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  3. docs/es/docs/environment-variables.md

    Por ejemplo, podrías tener un archivo `main.py` con:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip | Consejo
    
    El segundo argumento de [`os.getenv()`](https://docs.python.org/3.8/library/os.html#os.getenv) es el valor por defecto a retornar.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 8.3K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/environment-variables.md

    你也可以在 Python **之外**的終端機中建立環境變數(或使用其他方法),然後在 Python 中**讀取**它們。
    
    例如,你可以建立一個名為 `main.py` 的檔案,其中包含以下內容:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip
    
    第二個參數是 [`os.getenv()`](https://docs.python.org/3.8/library/os.html#os.getenv) 的預設回傳值。
    
    如果沒有提供,預設值為 `None`,這裡我們提供 `"World"` 作為預設值。
    
    ///
    
    然後你可以呼叫這個 Python 程式:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  5. src/cmd/asm/internal/asm/endtoend_test.go

    	"internal/buildcfg"
    	"os"
    	"path/filepath"
    	"regexp"
    	"sort"
    	"strconv"
    	"strings"
    	"testing"
    
    	"cmd/asm/internal/lex"
    	"cmd/internal/obj"
    )
    
    // An end-to-end test for the assembler: Do we print what we parse?
    // Output is generated by, in effect, turning on -S and comparing the
    // result against a golden file.
    
    func testEndToEnd(t *testing.T, goarch, file string) {
    	input := filepath.Join("testdata", file+".s")
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Fri Mar 20 17:02:17 GMT 2026
    - 12.6K bytes
    - Click Count (0)
  6. docs/es/docs/tutorial/dependencies/dependencies-with-yield.md

    Por ejemplo, [puedes usar `with` para leer un archivo](https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files):
    
    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    Internamente, `open("./somefile.txt")` crea un objeto llamado "Context Manager".
    
    Cuando el bloque `with` termina, se asegura de cerrar el archivo, incluso si hubo excepciones.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 13.3K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            emptyMappingFile.manager(dictionaryManager);
    
            PagingList<CharMappingItem> result = emptyMappingFile.selectList(0, 10);
    
            // Debug: print what we actually got
            if (result.size() > 0) {
                for (CharMappingItem item : result) {
                    System.out.println("Unexpected item: " + item.toLineString());
                }
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 18.9K bytes
    - Click Count (0)
  8. docs/fr/docs/python-types.md

    ```python
    from typing import Any
    
    
    def some_function(data: Any):
        print(data)
    ```
    
    ### Types génériques { #generic-types }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 12.7K bytes
    - Click Count (0)
  9. src/main/webapp/css/bootstrap.min.css

    -size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 12 06:14:02 GMT 2025
    - 227.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

                 * for whatever reason. I copy over the uid here so it appears correct
                 * in logging output. Logging of andx segments of messages inadvertantly
                 * print header information because of the way toString always makes a
                 * super.toString() call(see toString() at the end of all smbs classes).
                 */
    
                this.andx.uid = this.uid;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 15.8K bytes
    - Click Count (0)
Back to Top