@cryptobull_360 · Post #49765 · 12.05.2026 г., 12:45
🇺🇸📈 U.S. April seasonally adjusted Core CPI rose 0.4% MoM, above market expectations of 0.3%. This marks the highest reading since January 2025. #macro
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #146 · 16 сеп.
Функция sub в regex может принимать функцию в качестве аргумента repl. 📄 Из документации: If repl is a function, it is called for every non-overlapping occurrence of pattern. The function takes a single match object argument, and returns the replacement string. То есть для каждого совпадения будет вызвана функция для вычисления замены вместо замены на одну и ту же строку для всех совпадений. Иными словами, для замены разных совпадений на разные строки не потребуется запускать re.sub() много раз для каждой строки замены. Достаточно определить функцию, которая вернёт строку для каждого из совпадений. Описание слишком запутанное🤔, давайте лучше рассмотрим на простом примере: Создаем карту замены. То есть какие строки на какие требуется менять. remap = { 'раз': '1', 'два': '2', 'три': '3', 'четыре': '4', 'пять': '5', } Пишем функцию поиска строки для замены. Единственным аргументом будет объект re.Match. Используя данные этого объекта мы вычисляем замену on-the-fly! def get_str(match: re.Match): word = match.group(1) return remap.get(word.lower()) or word Пример текста. text = '''Раз Два Три Четыре Пять Вместе будем мы считать Пять Четыре Три Два Раз Мы считать научим вас ''' Теперь запускаем re.sub и вместо строки замены (repl) подаём имя функции. (Данный паттерн ищет отдельные слова в тексте) >>> print(re.sub(r'(\w+)', get_str, text)) 1 2 3 4 5 Вместе будем мы считать 5 4 3 2 1 Мы считать научим вас Думаю, достаточно наглядно 🤓 #libs#regex
Пребарај: #macro
@cryptobull_360 · Post #49765 · 12.05.2026 г., 12:45
🇺🇸📈 U.S. April seasonally adjusted Core CPI rose 0.4% MoM, above market expectations of 0.3%. This marks the highest reading since January 2025. #macro
Hashtags
@cryptobull_360 · Post #49764 · 12.05.2026 г., 12:44
⚡️🇺🇸#macro USA: - consumption (CPI; Apr): - m/m: 0.6% (prog: 0.6%; prev: 0.9%) - y/y: 3.8% (prog: 3.7%; pre: 3.3%); – Baseline (CPI) (YoY): 2.8% (Prog: 2.7%; Prev: 2.6%).
Hashtags
@cryptobull_360 · Post #49630 · 30.04.2026 г., 13:05
🇺🇸📝#macro USA - Initial Jobless Claims = 189K (exp 213K / prev 214K) - Continuing Jobless Claims = 1.785M (exp 1.820M / prev 1.821M)
Hashtags
@cryptobull_360 · Post #49305 · 14.04.2026 г., 14:38
🔮 IMF Raises Its 2026 Global Headline Inflation Forecast to 4.4% Amid Conflict-Driven Energy Shocks. #macro
Hashtags
@cryptobull_360 · Post #49140 · 09.04.2026 г., 12:59
🇺🇸👀#macroUSA: – PCE Price index (Feb): - m/m: 0.4% (prog: 0.4%; prev: 0.3%) - y/y: 2.8% (prog: 2.8%; pre: 2.8%) – Baseline PCE (YoY): 3% (prog: 3.0%; pre: 3.1%); – Initial Jobless Claims: 219 thousand (previous: 202 thousand); – GDP (Q4): 0.5% (prev: 4.4%)
Hashtags
@cryptobull_360 · Post #49120 · 07.04.2026 г., 23:53
🇺🇸 Trump said he decided to suspend attacks on Iran for 2 weeks. #macro
Hashtags
@cryptobull_360 · Post #48980 · 30.03.2026 г., 15:07
🇺🇸#macro Powell (post may be supplemented): - Politics is in a position that allows for a wait-and-see attitude; - DKP is in an advantageous position; - the economy is stable.
Hashtags
@cryptobull_360 · Post #48865 · 23.03.2026 г., 03:32
📉 Gold fell below $4350. 📉🇯🇵 Japanese Nikkei 225 stock index futures fell 4% after Iran threatened to “completely close” the Strait of Hormuz. #macro
Hashtags
@cryptobull_360 · Post #48847 · 19.03.2026 г., 12:30
🇺🇸👀#macro Initial Jobless Claims: 205 thousand (previous: 213 thousand)
Hashtags
@cryptobull_360 · Post #48845 · 18.03.2026 г., 12:36
🇺🇸👀#macro US: - Producer Price Index (PPI; Feb): - m/m: 0.7% (prior: 0.5%) - y/y: 3.4% (prior: 2.9%); - Core PPI: 3.9% y/y (prior: 3.6%).
Hashtags
@cryptobull_360 · Post #48739 · 13.03.2026 г., 12:44
🇺🇸👀#macroUSA: – GDP (Q4): 0.7% (prev: 4.4%); – PCE Price index (Jan): - m/m: 0.3% (prog: 0.3%; prev: 0.4%) - y/y: 2.8% (prog: 2.9%; pre: 2.9%) – Baseline PCE (YoY): 3.1% (prog: 3.1%; pre: 3%)
Hashtags
@cryptobull_360 · Post #48629 · 05.03.2026 г., 13:35
🇺🇸👀#macro Initial Jobless Claims: 213 thousand (previous: 212 thousand).
Hashtags