@cointrendz · Post #86414 · 16.05.2026 г., 03:56
🟢RSI Overbought Alert (4h)🟢 📉#USDS (RSI: 76.21 ⚡) | 24h📈: 0.10%
Hashtags
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
Пребарај: #usds
@cointrendz · Post #86414 · 16.05.2026 г., 03:56
🟢RSI Overbought Alert (4h)🟢 📉#USDS (RSI: 76.21 ⚡) | 24h📈: 0.10%
Hashtags
@cointrendz · Post #86362 · 12.05.2026 г., 07:34
🟢RSI Overbought Alert (4h)🟢 📉#USDS (RSI: 75.44 ⚡) | 24h📈: 0.10%
Hashtags
@cointrendz · Post #86283 · 06.05.2026 г., 09:34
🟢RSI Overbought Alert (4h)🟢 📉#USDS (RSI: 74.47 ⚡) | 24h📈: 0.13%
Hashtags
@cointrendz · Post #86175 · 28.04.2026 г., 21:57
🟢RSI Overbought Alert (4h)🟢 📉#USDS (RSI: 74.01 ⚡) | 24h📈: 0.17%
Hashtags
@cointrendz · Post #86159 · 27.04.2026 г., 21:36
🔴RSI Oversold Alert (4h)🔴 📉#USDS (RSI: 28.33 ⚡) | 24h🔻: -0.08%
Hashtags
@cointrendz · Post #86115 · 24.04.2026 г., 15:56
🟢RSI Overbought Alert (4h)🟢 📉#USDS (RSI: 75.17 ⚡) | 24h📈: 0.00%
Hashtags
@cointrendz · Post #86075 · 22.04.2026 г., 03:53
🟢RSI Overbought Alert (4h)🟢 📉#USDS (RSI: 75.62 ⚡) | 24h🔻: -0.01%
Hashtags
@cointrendz · Post #86029 · 19.04.2026 г., 20:55
🟢RSI Overbought Alert (4h)🟢 📉#USDS (RSI: 74.07 ⚡) | 24h🔻: -0.02%
Hashtags
@cointrendz · Post #85910 · 14.04.2026 г., 22:57
🟢RSI Overbought Alert (4h)🟢 📉#USDS (RSI: 72.76 ⚡) | 24h📈: 0.06%
Hashtags
@cointrendz · Post #85867 · 12.04.2026 г., 07:00
🔴RSI Oversold Alert (4h)🔴 📉#USDS (RSI: 22.50 ⚡) | 24h🔻: -0.17%
Hashtags
@cointrendz · Post #85826 · 10.04.2026 г., 01:26
🔴RSI Oversold Alert (4h)🔴 📉#USDS (RSI: 17.75 ⚡) | 24h🔻: -0.23%
Hashtags
@cointrendz · Post #85825 · 10.04.2026 г., 01:21
🟢RSI Overbought Alert (4h)🟢 📉#USDS (RSI: 73.50 ⚡) | 24h📈: 0.01%
Hashtags