Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2001 - 2010 of 2,117 for word (0.05 sec)

  1. docs/zh/docs/async.md

        return burgers
    ```
    
    使用 `async def`,Python 就知道在该函数中,它将遇上 `await`,并且它可以"暂停" ⏸ 执行该函数,直至执行其他操作 🔀 后回来。
    
    当你想调用一个 `async def` 函数时,你必须"等待"它。因此,这不会起作用:
    
    ```Python
    # This won't work, because get_burgers was defined with: async def
    burgers = get_burgers(2)
    ```
    
    ---
    
    因此,如果您使用的库告诉您可以使用 `await` 调用它,则需要使用 `async def` 创建路径操作函数 ,如:
    
    ```Python hl_lines="2-3"
    @app.get('/burgers')
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. docs/ru/docs/deployment/docker.md

    * Создайте файл `main.py` и заполните его:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  3. helm-releases/minio-3.4.6.tgz

    -f values.yaml minio/minio ``` Persistence ---------- This chart provisions a PersistentVolumeClai and mounts corresponding persistent volume to default location `/export`. You'll need physical storage available in the Kubernetes cluster for this to work. If you'd rather use `emptyDir`, disable PersistentVolumeClai by: ```bash helm install --set persistence.enabled=false minio/minio ``` > *"An emptyDir volume is first created when a Pod is assigned to a Node, and exists as long as that Pod is running...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 08 06:24:06 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  4. helm-releases/minio-3.4.8.tgz

    -f values.yaml minio/minio ``` Persistence ---------- This chart provisions a PersistentVolumeClai and mounts corresponding persistent volume to default location `/export`. You'll need physical storage available in the Kubernetes cluster for this to work. If you'd rather use `emptyDir`, disable PersistentVolumeClai by: ```bash helm install --set persistence.enabled=false minio/minio ``` > *"An emptyDir volume is first created when a Pod is assigned to a Node, and exists as long as that Pod is running...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jan 28 18:33:38 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  5. helm-releases/minio-3.5.2.tgz

    -f values.yaml minio/minio ``` Persistence ---------- This chart provisions a PersistentVolumeClai and mounts corresponding persistent volume to default location `/export`. You'll need physical storage available in the Kubernetes cluster for this to work. If you'd rather use `emptyDir`, disable PersistentVolumeClai by: ```bash helm install --set persistence.enabled=false minio/minio ``` > *"An emptyDir volume is first created when a Pod is assigned to a Node, and exists as long as that Pod is running...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Feb 08 00:29:26 UTC 2022
    - 15.4K bytes
    - Viewed (0)
  6. helm-releases/minio-3.1.8.tgz

    -f values.yaml minio/minio ``` Persistence ---------- This chart provisions a PersistentVolumeClai and mounts corresponding persistent volume to default location `/export`. You'll need physical storage available in the Kubernetes cluster for this to work. If you'd rather use `emptyDir`, disable PersistentVolumeClai by: ```bash helm install --set persistence.enabled=false minio/minio ``` > *"An emptyDir volume is first created when a Pod is assigned to a Node, and exists as long as that Pod is running...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 07 05:03:47 UTC 2021
    - 14.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableMap.java

         *
         * So it makes sense for the parameter (and thus the return type) to be @CheckForNull.
         *
         * Two other points:
         *
         * 1. We'll want to use something like @PolyNull once we can make that work for the various
         * platforms we target.
         *
         * 2. Kotlin's Map type has a getOrDefault method that accepts and returns a "plain V," in
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  8. docs/pt/docs/deployment/docker.md

    * Crie um arquivo `main.py` com:
    
    ```Python
    from typing import Optional
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
        return {"Hello": "World"}
    
    
    @app.get("/items/{item_id}")
    def read_item(item_id: int, q: Union[str, None] = None):
        return {"item_id": item_id, "q": q}
    ```
    
    ### Dockerfile
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  9. cmd/object-api-utils.go

    		return false
    	}
    	if !utf8.ValidString(object) {
    		return false
    	}
    	if strings.Contains(object, `//`) {
    		return false
    	}
    	// This is valid for AWS S3 but it will never
    	// work with file systems, we will reject here
    	// to return object name invalid rather than
    	// a cryptic error from the file system.
    	return !strings.ContainsRune(object, 0)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMap.java

         *
         * So it makes sense for the parameter (and thus the return type) to be @CheckForNull.
         *
         * Two other points:
         *
         * 1. We'll want to use something like @PolyNull once we can make that work for the various
         * platforms we target.
         *
         * 2. Kotlin's Map type has a getOrDefault method that accepts and returns a "plain V," in
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
Back to top