@bestwallpapes · Post #3300 · 28.02.2025 г., 14:14
@Bestwallpapes #Building#Skyscraper
Hashtags
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
Пребарај: #skyscraper
@bestwallpapes · Post #3300 · 28.02.2025 г., 14:14
@Bestwallpapes #Building#Skyscraper
Hashtags
@amazingeo · Post #405 · 22.10.2025 г., 20:31
🌍 The world’s tallest residential building, Central Park Tower in New York City, rises 472 meters. Ultratall skyscrapers like this change city skylines and challenge how we design urban living spaces. ✨ #urbangeography⚡#skyscraper⚡#citylife⚡#geography⚡#nature⚡#earth 👉subscribe Amazing Geography 👉more Channels
@arch_shovel · Post #159 · 17.05.2022 г., 13:59
eVolo Magazine announced the winners of the 2022 Skyscraper Competition. The Jury selected 3 winners and 20 honorable mentions from 427 projects received. The FIRST PLACE was awarded to CLIMATE CONTROL SKYSCRAPER designed by Kim Gyeong Jeung, Min Yeong Gi, and Yu Sang Gu from South Korea. The recipients of the SECOND PLACE are Wang Jue, Zhang Qian, Zhang Changsheng, Li Muchun, and Xu Jing from China for the project TSUNAMI PARK. NEW SPRING: AGRO-ECOLOGICAL SKYSCRAPER designed by Michał Spólnik from Austria and Marcin Kitala from Poland received the THIRD PLACE. #arch_shovel#architecture#award#architectural#competition#news#skyscraper