Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for first_name (0.05 sec)

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

    然后你尝试向程序员老手的朋友——编辑器自动补全寻求帮助。
    
    输入函数的第一个参数 `first_name`,输入点号(`.`)然后敲下 `Ctrl+Space` 来触发代码补全。
    
    但遗憾的是并没有起什么作用:
    
    <img src="https://fastapi.tiangolo.com/img/python-types/image01.png">
    
    ### 添加类型
    
    让我们来修改上面例子的一行代码。
    
    我们将把下面这段代码中的函数参数从:
    
    ```Python
        first_name, last_name
    ```
    
    改成:
    
    ```Python
        first_name: str, last_name: str
    ```
    
    就是这样。
    
    这些就是"类型提示":
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Aug 18 06:34:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  2. docs/ko/docs/python-types.md

    그때 개발자들의 오랜 친구, 에디터 자동완성을 시도해봅니다.
    
    당신은 `first_name`를 입력한 뒤 점(`.`)을 입력하고 자동완성을 켜기 위해서 `Ctrl+Space`를 눌렀습니다.
    
    하지만 슬프게도 아무런 도움이 되지 않습니다:
    
    <img src="/img/python-types/image01.png">
    
    ### 타입 추가하기
    
    이전 버전에서 한 줄만 수정해봅시다.
    
    저희는 이 함수의 매개변수 부분:
    
    ```Python
        first_name, last_name
    ```
    
    을 아래와 같이 바꿀 겁니다:
    
    ```Python
        first_name: str, last_name: str
    ```
    
    이게 다입니다.
    
    이게 "타입 힌트"입니다:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. docs/ja/docs/python-types.md

    そして、古くからプログラマーの友人であるエディタで自動補完を試してみます。
    
    関数の最初のパラメータ`first_name`を入力し、ドット(`.`)を入力してから、`Ctrl+Space`を押すと補完が実行されます。
    
    しかし、悲しいことに、これはなんの役にも立ちません:
    
    <img src="https://fastapi.tiangolo.com/img/python-types/image01.png">
    
    ### 型の追加
    
    先ほどのコードから一行変更してみましょう。
    
    以下の関数のパラメータ部分を:
    
    ```Python
        first_name, last_name
    ```
    
    以下へ変更します:
    
    ```Python
        first_name: str, last_name: str
    ```
    
    これだけです。
    
    それが「型ヒント」です:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/AddressTest.java

            when(mockAddress.firstCalledName()).thenReturn(expectedFirstName);
    
            // When
            String firstName = mockAddress.firstCalledName();
    
            // Then
            assertEquals(expectedFirstName, firstName, "Should return first called name");
            assertNotNull(firstName, "First called name should not be null");
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. tests/test_schema_extra_examples.py

        # TODO: In that case, define if File() should support example/examples too
        # @app.post("/form_example")
        # def form_example(firstname: str = Form(example="John")):
        #     return firstname
    
        # @app.post("/form_examples")
        # def form_examples(
        #     lastname: str = Form(
        #         ...,
        #         examples={
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 32.2K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

          )
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("ABC")
        assertThat(response.protocol).isEqualTo(protocol)
        val logs = testLogHandler.takeAll()
        assertThat(firstFrame(logs, "HEADERS")!!, "header logged")
          .contains("HEADERS       END_STREAM|END_HEADERS")
      }
    
      @Test
      fun emptyDataFrameSentWithEmptyBody() {
        server.enqueue(MockResponse(body = "ABC"))
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Nov 01 12:18:11 UTC 2025
    - 67.4K bytes
    - Viewed (0)
Back to top