@depthwallpaper · Post #147 · 14.12.2022 г., 13:14
Hi-Res. Island #hres#island#nature
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #418 · 9 мар.
Оператор pipe позволяет писать более компактный код, реализуя логику объединения данных (Union). Важно помнить, что его поведение зависит от контекста. Побитовые операции (логическое OR) result = 5 | 3 # 5 (0101) | 3 (0011) = 7 (0111) Самое главное - не путать с оператором or, это другое! Объединение множеств set_a = {1, 2, 3} set_b = {3, 4, 5} set_c = set_a | set_b # {1, 2, 3, 4, 5} set_c |= {5, 6} # {1, 2, 3, 4, 5, 6} Слияние словарей dict_1 = {"a": 1, "b": 2} dict_2 = {"b": 3, "c": 4} merged = dict_1 | dict_2 # {'a': 1, 'b': 3, 'c': 4} merged |= {"d": 5} # {'a': 1, 'b': 3, 'c': 4, 'd': 5} Аннотации типов, заменяет Union def process_data(value: int | str) -> None: print(value) Допустимо использовать в isinstance или issubclass isinstance(3, int | float) # True Паттерн-матчинг status_code = 404 match status_code: case 200 | 201 | 204: print("OK") case 400 | 404 | 500: print("ERROR") Для использования в своих классах требуется переопределить метод __or__ Так же нашел библиотеку pipe которая добавляет еще много возможностей. Рекомендую ознакомиться ;) #basic
Hashtags
Пребарај: #island
@depthwallpaper · Post #147 · 14.12.2022 г., 13:14
Hi-Res. Island #hres#island#nature
@depthwallpaper · Post #126 · 29.11.2022 г., 17:47
Hi-Res #hres#island#nature
@TestFlightX · Post #34543 · 08.11.2024 г., 08:02
#ISLAND#POWER https://testflight.apple.com/join/26uhRBPq
@seerg91 · Post #685 · 12.03.2025 г., 14:04
Хочу обратно в снежную сказку)) #BambooIsland #island
Hashtags
@amazingeo · Post #417 · 27.10.2025 г., 12:31
🌍 Chile’s unique Easter Island uses UTC–6 time zone, two hours behind mainland Chile. This rare split lets sunrise and sunset times align better with local daylight on the remote Pacific island. ✨ #timezone⚡#Pacific⚡#island⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@TFGames · Post #1741 · 30.12.2023 г., 17:45
#GIGGLEBOOT#ISLAND#GAMES https://testflight.apple.com/join/FT2VJBPN
Hashtags
@amazingeo · Post #416 · 26.10.2025 г., 20:31
🌍 The precise coordinates of Bouvet Island—54.4208°S, 3.3464°E—mark one of the most remote land points on Earth, surrounded by thousands of kilometers of open ocean in every direction. ✨ #coordinates⚡#remoteness⚡#island⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@Wallpaper_INT · Post #46372 · 15.05.2025 г., 14:30
#Lighthouse#Island#Mountains#Sea#8K @Wallpaper_INT
@Wallpaper_INT · Post #46420 · 17.05.2025 г., 18:30
#Set#Sea#Island#Boat#Trees#FHD @Wallpaper_INT
@Wallpaper_INT · Post #46928 · 05.08.2025 г., 17:31
#Island#Keyborad#Water#Art#8K @Wallpaper_INT
@wildthemestelegram · Post #1383 · 06.04.2024 г., 05:00
Red Sunset #black #gray #red #sun #sunset #clouds #night #dark #island #art ᅠ𝐖𝐢𝐥𝐝 𝐓𝐞𝐥𝐞𝐠𝐫𝐚𝐦 𝐓𝐡𝐞𝐦𝐞𝐬 ᅠ═──═⌘═──═ᅠ
@TFGames · Post #1499 · 12.12.2023 г., 16:26
#RETURN#TO#MONKEY#ISLAND #GAMES https://testflight.apple.com/join/NsObBanq