@blumgap · Post #3156 · 16.07.2025 г., 16:30
❓️Quote of the Day :16 Jul 🙋♂ Answer :Booker T. Washington 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
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
Пребарај: #hrum
@blumgap · Post #3156 · 16.07.2025 г., 16:30
❓️Quote of the Day :16 Jul 🙋♂ Answer :Booker T. Washington 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
Hashtags
@blumgap · Post #3123 · 15.07.2025 г., 16:22
❓️Quote of the Day :15 Jul 🙋♂ Answer :Buddha 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
Hashtags
@blumgap · Post #3099 · 14.07.2025 г., 16:20
❓️Quote of the Day :14 Jul 🙋♂ Answer :Roy T. Bennett 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
Hashtags
@blumgap · Post #3078 · 13.07.2025 г., 16:36
❓️Quote of the Day :13 Jul 🙋♂ Answer :Pablo Picasso 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
Hashtags
@blumgap · Post #3058 · 12.07.2025 г., 16:58
❓️Quote of the Day :12 Jul 🙋♂ Answer :Mother Teresa 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
Hashtags
@blumgap · Post #3037 · 11.07.2025 г., 16:33
❓️Quote of the Day :11 Jul 🙋♂ Answer :Henry Ford 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
Hashtags
@blumgap · Post #3021 · 10.07.2025 г., 16:42
❓️Quote of the Day :10 Jul 🙋♂ Answer :Maya Angelou 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
Hashtags
@blumgap · Post #3004 · 09.07.2025 г., 18:01
❓Quote of the Day :09 Jul 🙋♂️ Answer :Sam Levenson 🔗 Link :Hrum #hrum
Hashtags
@airdrop_presents · Post #2995 · 01.09.2024 г., 13:56
IF U MISS ARKM DON'T MISS $HRUM & $CAT #HRUM....If u're able to be on top 100 on this Airdrop consider farming easy £25k....we are early on this just decided to share early to u guys enjoy the journey Must perform all task I'm to be eligible Use the below links👇👇 HRUM (Task 1) Backed by ARKM team that was listed on binanace http://t.me/hrummebot/game?startapp=ref1184191157 $CAT (Task 2) http://t.me/catsgang_bot/join?startapp=4gXIT6LZx_lUccfDA9OD9 ⚠ Complete all task to be eligible
Hashtags
@blumgap · Post #2983 · 08.07.2025 г., 16:47
❓️Quote of the Day :08 Jul 🙋♂ Answer :Zig Ziglar 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
Hashtags
@blumgap · Post #2968 · 07.07.2025 г., 16:21
❓️Quote of the Day :07 Jul 🙋♂ Answer :Colin R. Davis 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
Hashtags
@blumgap · Post #2948 · 06.07.2025 г., 16:46
❓️Quote of the Day :06 Jul 🙋♂ Answer :Mark Twain 🔗 Link :Hrum #hrum ❤️ If you appreciate our work, tap a like or heart to support — we’ll keep bringing top passive income projects!
Hashtags