Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for first_name (0.37 sec)

  1. docs_src/python_types/tutorial001_py39.py

    def get_full_name(first_name, last_name):
        full_name = first_name.title() + " " + last_name.title()
        return full_name
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 162 bytes
    - Viewed (0)
  2. docs_src/python_types/tutorial002_py39.py

    def get_full_name(first_name: str, last_name: str):
        full_name = first_name.title() + " " + last_name.title()
        return full_name
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 172 bytes
    - Viewed (0)
  3. docs/ru/docs/python-types.md

    Вы вводите первый параметр функции, `first_name`, затем точку (`.`) и нажимаете `Ctrl+Space`, чтобы вызвать автозавершение.
    
    Но, к сожалению, ничего полезного не находится:
    
    <img src="/img/python-types/image01.png">
    
    ### Добавим типы { #add-types }
    
    Давайте изменим одну строку из предыдущей версии.
    
    Мы поменяем ровно этот фрагмент — параметры функции — с:
    
    ```Python
        first_name, last_name
    ```
    
    на:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  4. docs/de/docs/python-types.md

    ```Python
        first_name, last_name
    ```
    
    zu:
    
    ```Python
        first_name: str, last_name: str
    ```
    
    Das war's.
    
    Das sind die „Typhinweise“:
    
    {* ../../docs_src/python_types/tutorial002_py39.py hl[1] *}
    
    Das ist nicht das gleiche wie das Deklarieren von Defaultwerten, wie es hier der Fall ist:
    
    ```Python
        first_name="john", last_name="doe"
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.9K bytes
    - Viewed (1)
  5. docs/pt/docs/python-types.md

    ```Python
        first_name, last_name
    ```
    
    para:
    
    ```Python
        first_name: str, last_name: str
    ```
    
    É isso aí.
    
    Esses são os "type hints":
    
    {* ../../docs_src/python_types/tutorial002_py39.py hl[1] *}
    
    Isso não é o mesmo que declarar valores padrão como seria com:
    
    ```Python
        first_name="john", last_name="doe"
    ```
    
    É uma coisa diferente.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  6. docs/es/docs/python-types.md

    ```Python
        first_name, last_name
    ```
    
    a:
    
    ```Python
        first_name: str, last_name: str
    ```
    
    Eso es todo.
    
    Esas son las "anotaciones de tipos":
    
    {* ../../docs_src/python_types/tutorial002_py39.py hl[1] *}
    
    Eso no es lo mismo que declarar valores predeterminados como sería con:
    
    ```Python
        first_name="john", last_name="doe"
    ```
    
    Es una cosa diferente.
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 16.4K bytes
    - Viewed (1)
  7. docs/en/docs/python-types.md

    ```Python
        first_name, last_name
    ```
    
    to:
    
    ```Python
        first_name: str, last_name: str
    ```
    
    That's it.
    
    Those are the "type hints":
    
    {* ../../docs_src/python_types/tutorial002_py39.py hl[1] *}
    
    That is not the same as declaring default values like would be with:
    
    ```Python
        first_name="john", last_name="doe"
    ```
    
    It's a different thing.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top