- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 426 for myprint (0.05 seconds)
-
docs/tr/docs/advanced/advanced-python-types.md
Örneğin, bir şeyin `str` ya da `None` olabileceğini şöyle belirtebilirsiniz: ```python from typing import Union def say_hi(name: Union[str, None]): print(f"Hi {name}!") ``` `typing`, bir şeyin `None` olabileceğini belirtmek için `Optional` ile bir kısayol da sunar. Benim oldukça öznel bakış açıma göre küçük bir ipucu: - 🚨 `Optional[SomeType]` kullanmaktan kaçının
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 12:41:38 GMT 2026 - 2.1K bytes - Click Count (0) -
tests/create_test.go
} if _, ok := records[0]["@id"]; ok && fmt.Sprint(res2["id"]) != fmt.Sprint(records[0]["@id"]) { t.Errorf("failed to create data from map with table, @id != id, got %v, expect %v", res2["id"], records[0]["@id"]) } if _, ok := records[1]["id"]; ok && fmt.Sprint(res3["id"]) != fmt.Sprint(records[1]["@id"]) { t.Errorf("failed to create data from map with table, @id != id") }
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Jul 21 09:55:20 GMT 2025 - 26.8K bytes - Click Count (0) -
docs/fr/docs/advanced/advanced-python-types.md
Par exemple, vous pourriez déclarer que quelque chose peut être un `str` ou `None` : ```python from typing import Union def say_hi(name: Union[str, None]): print(f"Hi {name}!") ``` `typing` propose également un raccourci pour déclarer que quelque chose peut être `None`, avec `Optional`. Voici un conseil issu de mon point de vue très subjectif :
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:12:41 GMT 2026 - 2.3K bytes - Click Count (0) -
docs_src/handling_errors/tutorial006_py310.py
@app.exception_handler(StarletteHTTPException) async def custom_http_exception_handler(request, exc): print(f"OMG! An HTTP error!: {repr(exc)}") return await http_exception_handler(request, exc) @app.exception_handler(RequestValidationError) async def validation_exception_handler(request, exc): print(f"OMG! The client sent invalid data!: {exc}") return await request_validation_exception_handler(request, exc)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 928 bytes - Click Count (0) -
build-tools-internal/src/main/resources/templates/release-highlights.asciidoc
<<breaking-changes>>. endif::[] <% if (priorVersions.size() > 0) { %> // Add previous release to the list Other versions: <% print priorVersions.join("\n| ") print "\n" } if (notableHighlights.empty == false) { %> // tag::notable-highlights[] <% for (highlight in notableHighlights) { %> [discrete] [[${ highlight.anchor }]] === ${highlight.title}
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Sep 01 06:25:29 GMT 2021 - 848 bytes - Click Count (0) -
docs_src/python_types/tutorial011_py310.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Sep 02 15:56:35 GMT 2023 - 461 bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/TestLocking.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 4.2K bytes - Click Count (0) -
docs/zh/docs/advanced/advanced-python-types.md
def say_hi(name: Optional[str]): print(f"Hey {name}!") ``` 参数 `name` 被定义为 `Optional[str]`,但它并不是“可选”的,你不能不传这个参数就调用函数: ```Python say_hi() # 哎呀,这会报错!😱 ``` 参数 `name` 仍然是必填的(不是“可选”),因为它没有默认值。不过,`name` 接受 `None` 作为取值: ```Python say_hi(name=None) # 这样可以,None 是有效的 🎉 ``` 好消息是,在大多数情况下,你可以直接使用 `|` 来定义类型联合: ```python def say_hi(name: str | None): print(f"Hey {name}!") ```
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 13 13:37:57 GMT 2026 - 2K bytes - Click Count (0) -
docs/select/README.md
if 'Records' in event: records = event['Records']['Payload'].decode('utf-8') print(records) elif 'Stats' in event: statsDetails = event['Stats']['Details'] print("Stats details bytesScanned: ") print(statsDetails['BytesScanned']) print("Stats details bytesProcessed: ") print(statsDetails['BytesProcessed']) ``` ## 4. Run the Program
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Aug 12 18:20:36 GMT 2025 - 6.6K bytes - Click Count (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/CipherSuiteSurvey.kt
*/ class CipherSuiteSurvey( val clients: List<Client>, val ianaSuites: IanaSuites, val orderBy: List<SuiteId>, ) { fun printGoogleSheet() { print("name") for (client in clients) { print("\t") print(client.nameAndVersion) } println() val sortedSuites = ianaSuites.suites.sortedBy { ianaSuite -> val index = orderBy.indexOfFirst { it.matches(ianaSuite) }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Apr 02 01:44:15 GMT 2024 - 1.6K bytes - Click Count (0)