TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

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

Резултати

Пронајдени 1 слични објави

Пребарај: #animationuz

当前筛选 #animationuz清除筛选
GAMEFEST.UZ

@gamefestuz · Post #274 · 07.04.2026 г., 05:08

O‘zbekiston o‘yin sanoati tarixida yangi sahifa! Biz Game Fest 2026 doirasida navbatdagi maxsus mehmonimizni e’lon qilishdan faxrlanamiz. 🌍HOMA GAMES — ENDI TOSHKENTDA! Homa Games - bu dunyo miqyosidagi mobil o‘yinlar nashriyoti (publisher) bo‘lib, ularning portfelidagi o‘yinlar 1 milliarddan ortiq marta yuklab olingan! Ular "Hyper-casual" va "Hybrid-casual" yo‘nalishlarida dunyo yetakchilari hisoblanadi. Nega bu siz uchun muhim? 📌 Direct Pitching: O‘z o‘yiningizni dunyodagi eng kuchli nashriyotlardan biriga shaxsan taqdim etish imkoniyati. 📌 Market Insights: Homa Lab texnologiyalari va o‘yinlarni global darajaga olib chiqish sirlari haqida eksklyuziv bilimlar. 📌 ScaleUp: Loyihangizni jahon bozoriga olib chiqish va investitsiya jalb qilish uchun eng qisqa yo‘l. Creative Tech va Game Fest 2026 - bu shunchaki festival emas, bu sizning global karyerangiz boshlanish nuqtasidir. 📅Sana: 2026-yil, 15-16 may 📍Manzil: Renaissance Hall, Toshkent 🏛Tashkilotchi: O‘zbekiston Kreativ uyushmasi 🚀O‘z o‘yiningizni dunyoga ko‘rsatishga tayyormisiz?🌐 Batafsil va ro‘yxatdan o‘tish: CreativeTech.uz 📢 Kanalimiz: @creative_tech_official 📞 Aloqa: +998-95-474-19-19 ————————— A New Chapter for Uzbekistan’s Gaming Industry! 🚀🎮 We are thrilled to announce our next special guest for Game Fest 2026 ! Join us as we welcome a global powerhouse to Tashkent: 🌍 HOMA GAMES — NOW IN UZBEKISTAN! Homa Games is a world-class mobile games publisher with over 1 billion downloads across their portfolio. They are undisputed global leaders in the "Hyper-casual" and "Hybrid-casual" sectors. Why is this a game-changer for you? 📌 Direct Pitching: A rare opportunity to present your game personally to one of the world’s most influential publishers. 📌 Market Insights: Gain exclusive knowledge on Homa Lab technologies and the secrets to scaling games to a global audience. 📌 ScaleUp & Funding: The fastest route to taking your project to the international market and securing professional backing. Creative Tech & Game Fest 2026 is more than just a festival—it is the launchpad for your global career. 📅 Date: May 15-16, 2026 📍 Venue: Renaissance Hall, Tashkent 🏛 Organizer: Uzbekistan Creative Association 🚀 Ready to show your game to the world? 🌐 Details & Registration: CreativeTech.uz 📢 Follow us: @creative_tech_official 📞 Contact: +998-95-474-19-19 #GameFest2026#HomaGames#GamedevUzbekistan#CreativeTech#AnimationUz#GameDev#TashkentEvents