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

Резултати

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

Пребарај: #sxp

当前筛选 #sxp清除筛选
Pro Analysis

@proanalysistrader · Post #28161 · 11.11.2024 г., 12:52

#SXP/USDT analysis : #SXP has broken out of the trendline, and the price has also rebounded from the support zone following a period of sideways consolidation. It is anticipated that the price will continue to rise from the current level and test previous swing highs. TF : 1D Entry : $0.3240 Target : $0.5629 SL : $0.2055

Hashtags

Pro Analysis

@proanalysistrader · Post #28037 · 18.10.2024 г., 16:39

#SXP/USDT analysis : #SXP has bounced back from the 200 EMA after a retracement and a breakout of the trendline. It is now expected to move towards the previous swing high level. TF : 2H Entry : $0.2592 Target : $0.2894 SL : $0.2495

Hashtags

Pro Analysis

@proanalysistrader · Post #27870 · 24.08.2024 г., 15:13

#SXP/USDT analysis : #SXP is presently in an uptrend, forming higher highs (HHs) and higher lows (HLs). It is expected to experience a pullback near its support zone and is likely to bounce back from there to test higher levels. TF : 1h Entry : $0.2416 Target : $0.2538 SL : $0.2339

Hashtags

Crypto

@signal_bitcoins · Post #2880 · 18.02.2024 г., 10:36

#SXP bounced from the support zone on Weekly time frame,now price is trying to break up the falling wedge pattern, breakout incoming.. 📈 ❄️@signal_bitcoins❄️ ❄️@Shadow_support0o❄️

Hashtags

Binance crypto champions

@binancecryptochampions · Post #2265 · 27.04.2025 г., 13:41

✴️Free signal-Futures ✴️ ⚡️⚡️#SXP/USDT⚡️⚡️ Exchanges: Binance Futures,Bybit USDT Signal Type: Regular (Short) Leverage: Cross (10x) Amount: 2.0% Entry Targets: 1) 0.2050 2) 0.2100 Take-Profit Targets: 1) 0.2000 2) 0.1960 3) 0.1920 Stop Targets: 1) 0.2150 ✳️ Published by: @Trading_exp✳️ Note: These are early signals, wait for Entry notification from Cornix

Hashtags

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