Search Options

Results per page
Sort
Preferred Languages
Advance

Results 281 - 290 of 353 for Print (0.04 sec)

  1. docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md

    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    Под капотом" open("./somefile.txt") создаёт объект называемый "контекстным менеджером".
    
    Когда блок `with` завершается, он обязательно закрывает файл, даже если были исключения.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/parallel_device/parallel_device.cc

    // explicitly by running a TPUReplicatedOutput operation on the parallel device.
    //
    // TODO(allenl): There are some use-cases that are only supported by copying to
    // host at the moment (e.g. debug print on a tensor, .numpy(), etc.). We either
    // need to return something here or address these use-cases one by one.
    TFE_TensorHandle* CopyTensorFromParallelDevice(TFE_Context* context,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  3. internal/rest/client.go

    	// Should only be modified before any calls are made.
    	MaxErrResponseSize int64
    
    	// Avoid metrics update if set to true
    	NoMetrics bool
    
    	// TraceOutput will print debug information on non-200 calls if set.
    	TraceOutput io.Writer // Debug trace output
    
    	httpClient *http.Client
    	url        *url.URL
    	auth       func() string
    
    	sync.RWMutex // mutex for lastErr
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. istioctl/pkg/waypoint/waypoint.go

    					continue
    				}
    				filteredGws = append(filteredGws, gw)
    			}
    			err = printWaypointStatus(ctx, w, kubeClient, filteredGws)
    			if err != nil {
    				return fmt.Errorf("failed to print waypoint status: %v", err)
    			}
    			return w.Flush()
    		},
    	}
    
    	waypointGenerateCmd := &cobra.Command{
    		Use:   "generate",
    		Short: "Generate a waypoint configuration",
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. doc/go1.17_spec.html

    <pre>
    var a []int
    var c, c1, c2, c3, c4 chan int
    var i1, i2 int
    select {
    case i1 = &lt;-c1:
    	print("received ", i1, " from c1\n")
    case c2 &lt;- i2:
    	print("sent ", i2, " to c2\n")
    case i3, ok := (&lt;-c3):  // same as: i3, ok := &lt;-c3
    	if ok {
    		print("received ", i3, " from c3\n")
    	} else {
    		print("c3 is closed\n")
    	}
    case a[f()] = &lt;-c4:
    	// same as:
    	// case t := &lt;-c4
    	//	a[f()] = t
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  6. src/main/webapp/css/admin/bootstrap.min.css.map

    !important;\n    display: inline-flex !important;\n  }\n}\n\n@media print {\n  .d-print-none {\n    display: none !important;\n  }\n  .d-print-inline {\n    display: inline !important;\n  }\n  .d-print-inline-block {\n    display: inline-block !important;\n  }\n  .d-print-block {\n    display: block !important;\n  }\n  .d-print-table {\n    display: table !important;\n  }\n  .d-print-table-row {\n    display: table-row !important;\n  }\n  .d-print-table-cell {\n    display: table-cell !important;\n  }\n  .d-print-flex...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 639.3K bytes
    - Viewed (0)
  7. docs/ja/docs/tutorial/handling-errors.md

    デフォルトの例外ハンドラを`fastapi.exception_handlers`からインポートして再利用することができます:
    
    ```Python hl_lines="2 3 4 5 15 21"
    {!../../docs_src/handling_errors/tutorial006.py!}
    ```
    
    この例では、非常に表現力のあるメッセージでエラーを`print`しています。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. docs/zh/docs/advanced/settings.md

    ////
    
    ### 在 Python 中读取环境变量
    
    您还可以在 Python 之外的地方(例如终端中或使用任何其他方法)创建环境变量,然后在 Python 中读取它们。
    
    例如,您可以有一个名为 `main.py` 的文件,其中包含以下内容:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip
    
    <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 的第二个参数是要返回的默认值。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. cmd/common-main.go

    		consoleapi.TLSPort = globalMinioConsolePort
    		consoleapi.Hostname = globalMinioConsoleHost
    	}
    
    	return server, nil
    }
    
    // Check for updates and print a notification message
    func checkUpdate(mode string) {
    	updateURL := minioReleaseInfoURL
    	if runtime.GOOS == globalWindowsOSName {
    		updateURL = minioReleaseWindowsInfoURL
    	}
    
    	u, err := url.Parse(updateURL)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  10. fess-crawler-opensearch/src/main/java/org/codelibs/fess/crawler/service/impl/AbstractCrawlerService.java

            @Override
            public String getAsString(final Object value) {
                if (value instanceof Date) {
                    return DEFAULT_DATE_PRINTER.print(((Date) value).getTime());
                }
                return null;
            }
    
            @Override
            public Object getAsObject(final String value) {
                if (StringUtil.isEmpty(value)) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Nov 07 04:44:10 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top