- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 3,105 for rint (0.03 seconds)
-
docs/ru/docs/advanced/advanced-python-types.md
Например, вы можете объявить, что значение может быть `str` или `None`: ```python from typing import Union def say_hi(name: Union[str, None]): print(f"Hi {name}!") ``` В `typing` также есть сокращение, чтобы объявить, что значение может быть `None`, — `Optional`. Вот совет с моей очень субъективной точки зрения: - 🚨 Избегайте использования `Optional[SomeType]`
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 19:57:34 GMT 2026 - 3.3K bytes - Click Count (0) -
tests/joins_test.go
type ( Furniture struct { gorm.Model OwnerID *uint } Owner struct { gorm.Model Furnitures []Furniture CompanyID *uint Company Company } Building struct { gorm.Model Name string OwnerID *uint Owner Owner } ) DB.Migrator().DropTable(&Building{}, &Owner{}, &Furniture{})
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 15K bytes - Click Count (0) -
doc/go_mem.html
the corresponding send on <code>c</code> completes, which is sequenced before the <code>print</code>. </p> <p> If the channel were buffered (e.g., <code>c = make(chan int, 1)</code>) then the program would not be guaranteed to print <code>"hello, world"</code>. (It might print the empty string, crash, or do something else.) </p> <p class="rule">
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Aug 05 15:41:37 GMT 2025 - 26.6K 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) -
docs/ko/docs/advanced/advanced-python-types.md
예를 들어, 어떤 값이 `str` 또는 `None`이 될 수 있다고 선언할 수 있습니다: ```python from typing import Union def say_hi(name: Union[str, None]): print(f"Hi {name}!") ``` `typing`에는 `None`이 될 수 있음을 선언하는 축약형으로 `Optional`도 있습니다. 아주 개인적인 관점에서의 팁입니다: - 🚨 `Optional[SomeType]` 사용은 피하세요 - 대신 ✨ **`Union[SomeType, None]`를 사용하세요** ✨.
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 14 08:57:01 GMT 2026 - 2.4K bytes - Click Count (0) -
src/cmd/asm/doc.go
Can be repeated to define multiple symbols. -I dir1 -I dir2 Search for #include files in dir1, dir2, etc, after consulting $GOROOT/pkg/$GOOS_$GOARCH. -S Print assembly and machine code. -V Print assembler version and exit. -debug Dump instructions as they are parsed. -dynlink Support references to Go symbols defined in other shared libraries. -e
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Tue Aug 22 20:46:45 GMT 2023 - 1.8K bytes - Click Count (0) -
scripts/tests/test_translation_fixer/test_code_blocks/data/en_doc.md
# Code blocks { #code-blocks } Some text ```python # This is a sample Python code block def hello_world(): # Comment with indentation print("Hello, world!") # Print greeting ``` Some more text ```toml # This is a sample TOML code block title = "TOML Example" # Title of the document ``` And more text ```console // Use the command "live" and pass the language code as a CLI argumentCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 10 21:48:08 GMT 2026 - 874 bytes - Click Count (0) -
scripts/tests/test_translation_fixer/test_code_blocks/data/translated_doc_number_gt.md
# Code blocks { #code-blocks } Some text ```python # This is a sample Python code block def hello_world(): # Comment with indentation print("Hello, world!") # Print greeting ``` Some more text ```toml # This is a sample TOML code block title = "TOML Example" # Title of the document ``` Extra code block ``` $ cd my_project ``` And more text ```consoleCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Jan 10 21:48:08 GMT 2026 - 926 bytes - Click Count (0) -
schema/serializer_test.go
var ( intValue = math.MaxInt64 int8Value = int8(math.MaxInt8) int16Value = int16(math.MaxInt16) int32Value = int32(math.MaxInt32) int64Value = int64(math.MaxInt64) uintValue = uint(math.MaxInt64) uint8Value = uint8(math.MaxUint8) uint16Value = uint16(math.MaxUint16) uint32Value = uint32(math.MaxUint32) uint64Value = uint64(math.MaxInt64) maxInt64Plus1 = uint64(math.MaxInt64 + 1)
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun Oct 26 12:29:44 GMT 2025 - 4.8K bytes - Click Count (0) -
internal/dsync/utils.go
package dsync import ( "math/rand" "time" ) func backoffWait(minSleep, unit, maxSleep time.Duration) func(*rand.Rand, uint) time.Duration { if unit > time.Hour { // Protect against integer overflow panic("unit cannot exceed one hour") } return func(r *rand.Rand, attempt uint) time.Duration { sleep := minSleep sleep += unit * time.Duration(attempt) if sleep > maxSleep { sleep = maxSleep }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Mon Nov 11 14:51:43 GMT 2024 - 1.2K bytes - Click Count (0)