Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1061 - 1070 of 1,080 for Str (0.03 sec)

  1. docs/en/docs/deployment/docker.md

    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
    
    Now in the same project directory create a file `Dockerfile` with:
    
    ```{ .dockerfile .annotate }
    # (1)!
    FROM python:3.9
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Sep 18 16:09:57 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    	#line 1 "not-int-const"
    	void __cgo_f_1_3(void) { enum { __cgo_undefined__3 = (foo)*1 }; }
    	#line 1 "not-num-const"
    	void __cgo_f_1_4(void) { static const double __cgo_undefined__4 = (foo); }
    	#line 1 "not-str-lit"
    	void __cgo_f_1_5(void) { static const char __cgo_undefined__5[] = (foo); }
    
    This program will not compile, but cgo can use the presence or absence
    of an error message on a given line to deduce the information it
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Oct 01 22:52:54 UTC 2024
    - 44K bytes
    - Viewed (0)
  3. docs/ru/docs/deployment/docker.md

    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
    
    В этой же директории создайте файл `Dockerfile` и заполните его:
    
    ```{ .dockerfile .annotate }
    # (1)
    FROM python:3.9
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/testdata/arm64.s

    	FMOVD	8(R1), F2 // 220440fd
    	FMOVQ	32(R5), F2 // a208c03d
    	FMOVQ	65520(R10), F10 // 4afdff3d
    	FMOVQ	64(RSP), F11    // eb13c03d
    
    // medium offsets that either fit a single instruction or can use add+ldr/str
    	MOVD -4095(R17), R3                        // 3bfe3fd1630340f9
    	MOVD -391(R17), R3                         // 3b1e06d1630340f9
    	MOVD -257(R17), R3                         // 3b0604d1630340f9
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Jul 24 18:45:14 UTC 2024
    - 95.2K bytes
    - Viewed (0)
  5. docs/pt/docs/deployment/docker.md

    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
    
    Agora, no mesmo diretório do projeto, crie um arquivo `Dockerfile` com:
    
    ```{ .dockerfile .annotate }
    # (1)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CharMatcher.java

       * CharMatcher.anyOf("ab").trimFrom("abacatbab")
       * }</pre>
       *
       * ... returns {@code "cat"}.
       *
       * <p>Note that:
       *
       * <pre>{@code
       * CharMatcher.inRange('\0', ' ').trimFrom(str)
       * }</pre>
       *
       * ... is equivalent to {@link String#trim()}.
       */
      public String trimFrom(CharSequence sequence) {
        int len = sequence.length();
        int first;
        int last;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  7. docs/zh/docs/deployment/docker.md

    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
    
    现在在相同的project目录创建一个名为`Dockerfile`的文件:
    
    ```{ .dockerfile .annotate }
    # (1)
    FROM python:3.9
    
    # (2)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/sql-databases.md

    #### SQLAlchemy 风格和 Pydantic 风格
    
    请注意,SQLAlchemy*模型*使用 `=`来定义属性,并将类型作为参数传递给`Column`,例如:
    
    ```Python
    name = Column(String)
    ```
    
    虽然 Pydantic*模型*使用`:` 声明类型,但新的类型注释语法/类型提示是:
    
    ```Python
    name: str
    ```
    
    请牢记这一点,这样您在使用`:`还是`=`时就不会感到困惑。
    
    ### 创建用于读取/返回的Pydantic*模型/模式*
    
    现在创建当从 API 返回数据时、将在读取数据时使用的Pydantic*模型(schemas)。*
    
    例如,在创建一个项目之前,我们不知道分配给它的 ID 是什么,但是在读取它时(从 API 返回时)我们已经知道它的 ID。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. docs/de/docs/deployment/docker.md

    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
    
    Erstellen Sie nun im selben Projektverzeichnis eine Datei `Dockerfile` mit:
    
    ```{ .dockerfile .annotate }
    # (1)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 12 21:47:53 UTC 2024
    - 39K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

            .addHeader("Content-Type: text/plain")
            .body("STR;FFMJ2;Frankfurt;RTCM 2.1;1(1),3(19),16(59);0;GPS;GREF;DEU;50.12;8.68;0;1;GPSNet V2.10;none;N;N;560;Demo\nENDSOURCETABLE")
            .build(),
        )
        val response = getResponse(newRequest("/"))
        assertThat(response.code).isEqualTo(200)
        assertThat(response.message).isEqualTo("OK")
        assertContent(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
Back to top