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

Резултати

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

Пребарај: #trb

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

@CoinSonar · Post #244107 · 18.04.2026 г., 09:58

#TRB | Volume spike (USDT PAIR) 35 times the average volume 136.88K USDT traded in 15 min └Buying vol: 109.90K USDT 🟢 Boost score: 3/10 24h Vol: 373.45K USDT (Binance) Price: 20.07 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244056 · 18.04.2026 г., 07:57

#TRB | Volume spike (USDT PAIR) 102 times the average volume 133.27K USDT traded in 5 min └Selling vol: 99.78K USDT 🔴 Boost score: 1/10 24h Vol: 373.45K USDT (Binance) Price: 21.14 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243993 · 18.04.2026 г., 05:50

#TRB | Volume spike (USDT PAIR) 37 times the average volume 143.95K USDT traded in 15 min └Buying vol: 90.22K USDT 🟢 Boost score: 6/10 24h Vol: 373.45K USDT (Binance) Price: 21.45 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243909 · 18.04.2026 г., 01:26

#TRB | Volume spike (USDT PAIR) 36 times the average volume 141.73K USDT traded in 15 min └Buying vol: 100.56K USDT 🟢 Boost score: 6/10 24h Vol: 373.45K USDT (Binance) Price: 21.41 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243837 · 17.04.2026 г., 20:29

#TRB | Volume spike (USDT PAIR) 85 times the average volume 111.41K USDT traded in 5 min └Selling vol: 81.12K USDT 🔴 Boost score: 1/10 24h Vol: 373.45K USDT (Binance) Price: 21.02 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243803 · 17.04.2026 г., 18:05

#TRB | Volume spike (USDT PAIR) 90 times the average volume 117.86K USDT traded in 5 min └Selling vol: 83.93K USDT 🔴 Boost score: 1/10 24h Vol: 373.45K USDT (Binance) Price: 20.07 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243752 · 17.04.2026 г., 15:40

#TRB | Volume spike (USDT PAIR) 33 times the average volume 129.62K USDT traded in 15 min └Selling vol: 96.35K USDT 🔴 Boost score: 1/10 24h Vol: 373.45K USDT (Binance) Price: 19.71 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243624 · 17.04.2026 г., 11:44

#TRB | Volume spike (USDT PAIR) 33 times the average volume 130.34K USDT traded in 15 min └Buying vol: 72.41K USDT 🟢 Boost score: 2/10 24h Vol: 373.45K USDT (Binance) Price: 19.84 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243521 · 17.04.2026 г., 07:53

#TRB | Volume spike (USDT PAIR) 33 times the average volume 129.96K USDT traded in 15 min └Buying vol: 68.20K USDT 🟢 Boost score: 4/10 24h Vol: 373.45K USDT (Binance) Price: 19.74 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243456 · 17.04.2026 г., 05:25

#TRB | Volume spike (USDT PAIR) 36 times the average volume 142.90K USDT traded in 15 min └Selling vol: 76.95K USDT 🔴 Boost score: 1/10 24h Vol: 373.45K USDT (Binance) Price: 20.08 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243435 · 17.04.2026 г., 03:25

#TRB | Volume spike (USDT PAIR) 37 times the average volume 146.77K USDT traded in 15 min └Selling vol: 75.55K USDT 🔴 Boost score: 1/10 24h Vol: 373.45K USDT (Binance) Price: 21.25 (-2.8% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243397 · 17.04.2026 г., 01:25

#TRB | Volume spike (USDT PAIR) 132 times the average volume 171.87K USDT traded in 5 min └Buying vol: 98.12K USDT 🟢 Boost score: 3/10 24h Vol: 373.45K USDT (Binance) Price: 20.86 (-2.8% in 24h)

Hashtags

123•••56
ПретходнаСтраница 1 од 6Следна