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

Резултати

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

Пребарај: #tree

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

@CoinSonar · Post #244224 · 18.04.2026 г., 14:44

#TREE | Volume spike (USDT PAIR) 218 times the average volume 256.38K USDT traded in 5 min └Buying vol: 135.04K USDT 🟢 Boost score: 3/10 24h Vol: 338.02K USDT (Binance) Price: 0.0685 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244183 · 18.04.2026 г., 12:44

#TREE | Volume spike (USDT PAIR) 43 times the average volume 152.79K USDT traded in 15 min └Selling vol: 89.95K USDT 🔴 Boost score: 1/10 24h Vol: 338.02K USDT (Binance) Price: 0.0684 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244130 · 18.04.2026 г., 10:44

#TREE | Volume spike (USDT PAIR) 36 times the average volume 128.35K USDT traded in 15 min └Selling vol: 70.61K USDT 🔴 Boost score: 1/10 24h Vol: 338.02K USDT (Binance) Price: 0.0691 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244082 · 18.04.2026 г., 08:44

#TREE | Volume spike (USDT PAIR) 64 times the average volume 225.65K USDT traded in 15 min └Buying vol: 114.19K USDT 🟢 Boost score: 4/10 24h Vol: 338.02K USDT (Binance) Price: 0.0694 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244016 · 18.04.2026 г., 06:44

#TREE | Volume spike (USDT PAIR) 47 times the average volume 167.15K USDT traded in 15 min └Buying vol: 87.28K USDT 🟢 Boost score: 3/10 24h Vol: 338.02K USDT (Binance) Price: 0.0695 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243967 · 18.04.2026 г., 04:44

#TREE | Volume spike (USDT PAIR) 38 times the average volume 134.58K USDT traded in 15 min └Selling vol: 77.45K USDT 🔴 Boost score: 1/10 24h Vol: 338.02K USDT (Binance) Price: 0.0688 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243925 · 18.04.2026 г., 02:14

#TREE | Volume spike (USDT PAIR) 37 times the average volume 130.94K USDT traded in 15 min └Buying vol: 72.35K USDT 🟢 Boost score: 5/10 24h Vol: 338.02K USDT (Binance) Price: 0.0692 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243870 · 17.04.2026 г., 23:24

#TREE | Volume spike (USDT PAIR) 40 times the average volume 141.23K USDT traded in 15 min └Buying vol: 73.88K USDT 🟢 Boost score: 4/10 24h Vol: 338.02K USDT (Binance) Price: 0.0697 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243817 · 17.04.2026 г., 19:05

#TREE | Volume spike (USDT PAIR) 40 times the average volume 142.17K USDT traded in 15 min └Selling vol: 75.15K USDT 🔴 Boost score: 1/10 24h Vol: 338.02K USDT (Binance) Price: 0.0695 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243777 · 17.04.2026 г., 16:50

#TREE | Volume spike (USDT PAIR) 36 times the average volume 128.34K USDT traded in 15 min └Selling vol: 73.29K USDT 🔴 Boost score: 1/10 24h Vol: 338.02K USDT (Binance) Price: 0.0700 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243717 · 17.04.2026 г., 14:43

#TREE | Volume spike (USDT PAIR) 36 times the average volume 128.60K USDT traded in 15 min └Selling vol: 70.97K USDT 🔴 Boost score: 1/10 24h Vol: 338.02K USDT (Binance) Price: 0.0705 (-1.9% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243639 · 17.04.2026 г., 12:40

#TREE | Volume spike (USDT PAIR) 37 times the average volume 131.09K USDT traded in 15 min └Buying vol: 75.06K USDT 🟢 Boost score: 4/10 24h Vol: 338.02K USDT (Binance) Price: 0.0693 (-1.9% in 24h)

Hashtags

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