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

Резултати

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

Пребарај: #ckb

当前筛选 #ckb清除筛选
Coin Sonar

@CoinSonar · Post #244247 · 18.04.2026 г., 15:25

#CKB | Volume spike (USDT PAIR) 134 times the average volume 112.97K USDT traded in 5 min └Selling vol: 60.93K USDT 🔴 Boost score: 1/10 24h Vol: 242.12K USDT (Binance) Price: 0.001618 (-1.0% in 24h)

Hashtags

Pro Analysis

@proanalysistrader · Post #28463 · 10.02.2025 г., 16:09

#CKB/USDT analysis : #CKB has retested the previously respected zone. The price is anticipated to rebound from the current level and test higher levels. TF : 1W Entry : $0.006300 Target : $0.020440 SL : $0.004500

Hashtags

Pro Analysis

@proanalysistrader · Post #28061 · 24.10.2024 г., 14:54

#CKB/USDT analysis : #CKB has experienced a breakout and has successfully retested the previous breakout zone. It is expected to rise from the current level and test previous highs. A bullish momentum is anticipated in the near future. TF : 1D Entry : $0.01408 Target : $0.01916 SL : $0.01239

Hashtags

American Crypto©

@americancryptotrading · Post #27593 · 19.04.2026 г., 10:12

🇺🇸#CKB/USDT is trading within the fallingwedge pattern on the 3D chart👀 Awesome entry✈️ American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27511 · 22.01.2026 г., 09:57

🇺🇸#CKB/USDT is maintaining its position above the supportzone on the weekly timeframe🔍 Looking for a bounce🐃 American Crypto©

Hashtags

American Crypto©

@americancryptotrading · Post #27305 · 08.07.2025 г., 08:06

🇺🇸#CKB/USDT is bouncing off the supportzone on the weekly timeframe👀 Looks good to buy📈 American Crypto©

Hashtags

12
ПретходнаСтраница 1 од 2Следна