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

Резултати

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

Пребарај: #kaia

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

@CoinSonar · Post #244035 · 18.04.2026 г., 07:27

#KAIA | Volume spike (USDT PAIR) 21 times the average volume 137.61K USDT traded in 15 min └Selling vol: 78.44K USDT 🔴 Boost score: 1/10 24h Vol: 620.25K USDT (Binance) Price: 0.0513 (-3.3% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243811 · 17.04.2026 г., 18:39

#KAIA | Volume spike (USDT PAIR) 20 times the average volume 129.97K USDT traded in 15 min └Buying vol: 69.92K USDT 🟢 Boost score: 4/10 24h Vol: 620.25K USDT (Binance) Price: 0.0512 (-3.3% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243631 · 17.04.2026 г., 12:22

#KAIA | Volume spike (USDT PAIR) 508 times the average volume 218.96K USDT traded in 1 min └Buying vol: 111.57K USDT 🟢 Boost score: 6/10 24h Vol: 620.25K USDT (Binance) Price: 0.0500 (-3.3% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243557 · 17.04.2026 г., 09:01

#KAIA | Volume spike (USDT PAIR) 20 times the average volume 134.20K USDT traded in 15 min └Buying vol: 70.95K USDT 🟢 Boost score: 4/10 24h Vol: 620.25K USDT (Binance) Price: 0.0488 (-3.3% in 24h)

Hashtags

Free Crypto Signals (Profitable Zone)

@btctradingclub · Post #26845 · 26.01.2026 г., 18:01

🚀🚀 430% Profit on #KAIA/USDT for our Premium Members on Binance Futures/Bybit/OKXX/Kucoin/Bitget ✅✅ All target completed 👁‍🗨Contact @primemod to enter the Premium Group for high quality SPOT & FUTURES Signals

Hashtags

☑️☑️Below you will see the Futures Premium Signals Results for (26th January 2026) 🚀#KAIA-USDT - 364% profit 🚀#FOGO-USDT - 90% profit 👇Trades That Incurred Loss: ❌ ✅✅Net Profit = 454% Profit 👇🏻Signals Summary ➕Total Signals Sent out - 02 ✔️Profitable Signals - 02 ✖️Total Signals Lost - 00 ◼️Trade cancelled without being executed - 00 ✅✅Net Profit - 454% Profit 👁‍🗨Contact @futurechief to enter the most profitable Futures Premium Signal Group

Hashtags