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

Резултати

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

Пребарај: #solv

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

@CoinSonar · Post #244266 · 18.04.2026 г., 16:06

#SOLV | Volume spike (USDT PAIR) 55 times the average volume 107.63K USDT traded in 5 min └Selling vol: 93.67K USDT 🔴 Boost score: 1/10 24h Vol: 562.63K USDT (Binance) Price: 0.00417 (-5.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244151 · 18.04.2026 г., 11:40

#SOLV | Volume spike (USDT PAIR) 24 times the average volume 145.25K USDT traded in 15 min └Selling vol: 98.65K USDT 🔴 Boost score: 1/10 24h Vol: 562.63K USDT (Binance) Price: 0.00443 (-5.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #244043 · 18.04.2026 г., 07:37

#SOLV | Volume spike (USDT PAIR) 26 times the average volume 154.01K USDT traded in 15 min └Selling vol: 94.34K USDT 🔴 Boost score: 1/10 24h Vol: 562.63K USDT (Binance) Price: 0.00475 (-5.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243984 · 18.04.2026 г., 05:37

#SOLV | Volume spike (USDT PAIR) 160 times the average volume 312.82K USDT traded in 5 min └Buying vol: 175.92K USDT 🟢 Boost score: 4/10 24h Vol: 562.63K USDT (Binance) Price: 0.00523 (-5.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243947 · 18.04.2026 г., 03:37

#SOLV | Volume spike (USDT PAIR) 21 times the average volume 128.27K USDT traded in 15 min └Buying vol: 81.45K USDT 🟢 Boost score: 6/10 24h Vol: 562.63K USDT (Binance) Price: 0.00502 (-5.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243914 · 18.04.2026 г., 01:35

#SOLV | Volume spike (USDT PAIR) 22 times the average volume 129.06K USDT traded in 15 min └Buying vol: 75.34K USDT 🟢 Boost score: 4/10 24h Vol: 562.63K USDT (Binance) Price: 0.00469 (-5.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243834 · 17.04.2026 г., 20:17

#SOLV | Volume spike (USDT PAIR) 21 times the average volume 128.26K USDT traded in 15 min └Buying vol: 110.97K USDT 🟢 Boost score: 4/10 24h Vol: 562.63K USDT (Binance) Price: 0.00455 (-5.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243655 · 17.04.2026 г., 13:07

#SOLV | Volume spike (USDT PAIR) 56 times the average volume 110.63K USDT traded in 5 min └Buying vol: 92.85K USDT 🟢 Boost score: 7/10 24h Vol: 562.63K USDT (Binance) Price: 0.00448 (-5.0% in 24h)

Hashtags

Coin Sonar

@CoinSonar · Post #243550 · 17.04.2026 г., 08:51

#SOLV | Volume spike (USDT PAIR) 22 times the average volume 133.95K USDT traded in 15 min └Buying vol: 87.36K USDT 🟢 Boost score: 4/10 24h Vol: 562.63K USDT (Binance) Price: 0.00429 (-5.0% in 24h)

Hashtags

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