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

Резултати

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

Пребарај: #theta

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

@CoinSonar · Post #244221 · 18.04.2026 г., 14:34

#THETA | Volume spike (USDT PAIR) 13 times the average volume 128.98K USDT traded in 15 min └Buying vol: 93.20K USDT 🟢 Boost score: 4/10 24h Vol: 946.49K USDT (Binance) Price: 0.233 (0.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244158 · 18.04.2026 г., 11:54

#THETA | Volume spike (USDT PAIR) 52 times the average volume 521.91K USDT traded in 15 min └Selling vol: 315.77K USDT 🔴 Boost score: 1/10 24h Vol: 946.49K USDT (Binance) Price: 0.229 (0.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244105 · 18.04.2026 г., 09:54

#THETA | Volume spike (USDT PAIR) 68 times the average volume 224.85K USDT traded in 5 min └Selling vol: 116.62K USDT 🔴 Boost score: 1/10 24h Vol: 946.49K USDT (Binance) Price: 0.243 (0.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244052 · 18.04.2026 г., 07:54

#THETA | Volume spike (USDT PAIR) 19 times the average volume 194.78K USDT traded in 15 min └Selling vol: 101.92K USDT 🔴 Boost score: 1/10 24h Vol: 946.49K USDT (Binance) Price: 0.234 (0.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243998 · 18.04.2026 г., 05:54

#THETA | Volume spike (USDT PAIR) 135 times the average volume 445.44K USDT traded in 5 min └Selling vol: 223.33K USDT 🔴 Boost score: 1/10 24h Vol: 946.49K USDT (Binance) Price: 0.260 (0.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243951 · 18.04.2026 г., 03:54

#THETA | Volume spike (USDT PAIR) 13 times the average volume 133.57K USDT traded in 15 min └Buying vol: 72.58K USDT 🟢 Boost score: 4/10 24h Vol: 946.49K USDT (Binance) Price: 0.226 (0.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243907 · 18.04.2026 г., 01:06

#THETA | Volume spike (USDT PAIR) 13 times the average volume 129.69K USDT traded in 15 min └Buying vol: 88.01K USDT 🟢 Boost score: 6/10 24h Vol: 946.49K USDT (Binance) Price: 0.218 (0.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243797 · 17.04.2026 г., 17:51

#THETA | Volume spike (USDT PAIR) 14 times the average volume 140.62K USDT traded in 15 min └Buying vol: 89.32K USDT 🟢 Boost score: 3/10 24h Vol: 946.49K USDT (Binance) Price: 0.216 (0.0% in 24h)

Hashtags

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