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

Резултати

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

Пребарај: #cream

当前筛选 #cream清除筛选
American Crypto©

@americancryptotrading · Post #27121 · 15.01.2025 г., 18:37

🇺🇸#CREAM/USDT is testing the supportzone on the weekly chart🔍 Looking for a move up if we bounce🐃 American Crypto©

Hashtags

Mexc Crypto Signals Pumps Trading Kucoin

@mexc_signals_pumps_trading · Post #1346 · 01.09.2024 г., 22:04

Here's the Analysis of #CREAM : #CREAM is been dumping alot and reached the listing price in binance and a major support zone of $14.25 - $15.60 and currently, moving within the a small channel pattern. A breakout will decide the directional move, but the trend looks heavily bearish so can;t expect much bullish move.

Hashtags

CRYPTO SIGNALS FREE

@crypto_vip_signals_free · Post #883 · 26.02.2022 г., 07:10

You missed one more quick profit 😢 almost (500%🔥)in 3x margin #CREAM/BUSD 💹MARGIN:( 3 )X in binance 📈LONG 🟢ENTRY PRICE: 35.2 - 28.4 ------------------------------------------------------ 💵Target 1=36. 7✅ 💵Target 2=39 ✅ 💵Target 3=44.2 ✅ 💵Target 4=53.5 ✅ 💵Target 5=59.7 ✅ 💵Target 6=68 ✅ 💵Target 7=73.9 ✅ 💵Target 8=81.5 ✅ 🔥 501. 72% Profit (3x margin) 🔘 Most of our targets destroyed within 72 hours💥 🔘 Low risk low margin trade, made a high of 83$. 🔘 Thats what we do, we prefer quality over quantity. We provide signals with huge profit potential within short term 🔘Premium members literally printed money out of this trade🔥 🔘 For premium contact @cryptomathh ➖➖➖➖➖➖➖➖ Crypto Signals Premium

Hashtags

123•••67
ПретходнаСтраница 1 од 7Следна