@cointrendz · Post #86244 · 03.05.2026 г., 22:51
🟢RSI Overbought Alert (4h)🟢 📉#WBT (RSI: 70.69 ⚡) | 24h📈: 0.88%
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
Пребарај: #wbt
@cointrendz · Post #86244 · 03.05.2026 г., 22:51
🟢RSI Overbought Alert (4h)🟢 📉#WBT (RSI: 70.69 ⚡) | 24h📈: 0.88%
Hashtags
@cointrendz · Post #86211 · 01.05.2026 г., 13:39
🟢RSI Overbought Alert (4h)🟢 📉#WBT (RSI: 70.02 ⚡) | 24h📈: 2.42%
Hashtags
@cointrendz · Post #86196 · 30.04.2026 г., 07:09
🟢RSI Overbought Alert (4h)🟢 📉#WBT (RSI: 72.24 ⚡) | 24h📈: 6.15%
Hashtags
@cointrendz · Post #85982 · 17.04.2026 г., 14:01
🟢RSI Overbought Alert (4h)🟢 📉#WBT (RSI: 70.03 ⚡) | 24h📈: 4.83%
Hashtags
@cointrendz · Post #85892 · 13.04.2026 г., 23:01
🟢RSI Overbought Alert (4h)🟢 📉#WBT (RSI: 70.47 ⚡) | 24h📈: 5.39%
Hashtags
@cointrendz · Post #85764 · 06.04.2026 г., 09:29
🟢RSI Overbought Alert (4h)🟢 📉#WBT (RSI: 70.53 ⚡) | 24h📈: 3.37%
Hashtags
@cointrendz · Post #85661 · 29.03.2026 г., 22:57
🔴RSI Oversold Alert (4h)🔴 📉#WBT (RSI: 29.84 ⚡) | 24h🔻: -1.75%
Hashtags
@cointrendz · Post #85632 · 28.03.2026 г., 08:50
🔴RSI Oversold Alert (4h)🔴 📉#WBT (RSI: 29.99 ⚡) | 24h🔻: -1.33%
Hashtags
@cointrendz · Post #85615 · 27.03.2026 г., 08:45
🔴RSI Oversold Alert (4h)🔴 📉#WBT (RSI: 28.99 ⚡) | 24h🔻: -3.26%
Hashtags
@cointrendz · Post #85552 · 23.03.2026 г., 00:41
🔴RSI Oversold Alert (4h)🔴 📉#WBT (RSI: 28.98 ⚡) | 24h🔻: -2.10%
Hashtags
@cointrendz · Post #85497 · 19.03.2026 г., 15:49
🔴RSI Oversold Alert (4h)🔴 📉#WBT (RSI: 29.94 ⚡) | 24h🔻: -3.85%
Hashtags
@cointrendz · Post #85454 · 17.03.2026 г., 04:16
🟢RSI Overbought Alert (4h)🟢 📉#WBT (RSI: 70.03 ⚡) | 24h📈: 1.07%
Hashtags