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

Резултати

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

Пребарај: #seasonality

当前筛选 #seasonality清除筛选
💎SYNDICATE AI GOLD SIGNALS️

@syndicategold001 · Post #8309 · 08.09.2025 г., 07:36

Bitcoin September 2025 Outlook: a/b/c price fractal structure https://www.tradingview.com/chart/BTCUSDT/PJyprPzq-Bitcoin-September-2025-Outlook-a-b-c-price-fractal-structure/ BTC enters September post-ATH with a seasonal headwind. Base case: a ~10% A-leg dip toward $108k, a B-bounce into ~$122k, then a C-flush near ~$94k—echoing April’s ABC rhythm. Once complete, the uptrend should re-assert into year-end. 📉🔁📈#Bitcoin#Seasonality#Crypto 🟠 Bitcoin September Outlook: Seasonality vs. Structure After a fresh ATH, September’s historical bias skews mildly red. Base case is a ~10% A-leg dip that develops into an A/B/C correction before trend continuation. Think controlled pullback → consolidation → next markup. 📉➡️🔁➡️📈 ________________________________________ 🗓 Seasonality Snapshot (2015–2024) • Mean (10-yr): −2.55% · Median: −4.52% • Red months: 6/10 • Worst September: 2019 (−13.88%) • Best September: 2024 (+7.39%) • Last 3 yrs avg: +2.8% (2024 +7.39%, 2023 +3.99%, 2022 −3.09%) • Last 5 yrs avg (2020–2024): −1.3% Read: September has tended to be weak, but the last two years printed green. Seasonality is a headwind—not a handbrake. 🌬 ✅continue reading on TradingView

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1366 · 16.11.2025 г., 03:28

🪙EthGlobalNews 📊#Seasonality BTC’s Q4 performance turns negative 👉 最新季度回報數據顯示,比特幣今年 Q4 表現已低於 2022 與 2019,目前跌幅超過 -15%,成為近年表現最弱的年末區間之一。 🤣 從 2013–2024 的歷史觀察,Q4 一般屬於 高波動、但偏向正報酬的季節性窗口。 🤣 雖然短線承壓,但若歷史均值發揮作用,Q4 中後段仍可能出現結構性反彈空間。 #Ethereum#Markets#Crypto#Insight ——— 👍@Web3NewsInsight 🥲 🥲Follow for more Web3 News 🤣

以太坊区块链新闻| ETH 以太币圈热瓜

@ethereumglobalnews · Post #1566 · 14.12.2025 г., 14:13

ETH is outperforming BTC in December. 📈 數據對比顯示: 12 月份 ETH 歷史月度表現整體強於 BTC,多年來平均回報與中位數均佔優,季節性優勢明顯。 📊 從 CoinGlass 月度回報矩陣來看:ETH 在 12 月錄得正回報的概率顯著高於 BTC,且多次出現 ETH 相對強勢的輪動窗口。 #Ethereum#虚拟货币#Rotation#Crypto#Seasonality#区块链 ——— 👇Tip👇讚 或點擊進行💎資源搜索👇