Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for firstFrame (0.06 sec)

  1. docs_src/python_types/tutorial002.py

    def get_full_name(first_name: str, last_name: str):
        full_name = first_name.title() + " " + last_name.title()
        return full_name
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 172 bytes
    - Viewed (0)
  2. cmd/api-utils_test.go

    		{"p/", "url", "p/"},
    		{"p/", "url", "p/"},
    		{"~user", "url", "%7Euser"},
    		{"*user", "url", "*user"},
    		{"user+password", "url", "user%2Bpassword"},
    		{"_user", "url", "_user"},
    		{"firstname.lastname", "url", "firstname.lastname"},
    	}
    	for i, testCase := range testCases {
    		t.Run(fmt.Sprintf("Test%d", i+1), func(t *testing.T) {
    			outputText := s3EncodeName(testCase.inputText, testCase.encodingType)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  3. docs/es/docs/python-types.md

    ```Python
        first_name, last_name
    ```
    
    a:
    
    ```Python
        first_name: str, last_name: str
    ```
    
    Eso es todo.
    
    Esos son los "type hints":
    
    ```Python hl_lines="1"
    {!../../docs_src/python_types/tutorial002.py!}
    ```
    
    No es lo mismo a declarar valores por defecto, como sería con:
    
    ```Python
        first_name="john", last_name="doe"
    ```
    
    Es algo diferente.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. docs_src/python_types/tutorial001.py

    def get_full_name(first_name, last_name):
        full_name = first_name.title() + " " + last_name.title()
        return full_name
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Mar 26 19:09:53 UTC 2020
    - 162 bytes
    - Viewed (0)
  5. docs/tr/docs/python-types.md

    ```Python
        first_name, last_name
    ```
    
    ve bu hale getireceğiz:
    
    ```Python
        first_name: str, last_name: str
    ```
    
    Bu kadar.
    
    İşte bunlar "tip belirteçleri":
    
    ```Python hl_lines="1"
    {!../../docs_src/python_types/tutorial002.py!}
    ```
    
    Bu, aşağıdaki gibi varsayılan değerleri bildirmekle aynı şey değildir:
    
    ```Python
        first_name="john", last_name="doe"
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. 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 Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top