@abmedia_news · Post #23763 · 10.04.2026 г., 02:02
【🚀傳統金融|油價居高不下,CPI 公布在即,停滯性通膨真會發生嗎? 】 #CPI#Stagflation 📍請見報導: https://abmedia.io/us-pce-shows-stagflation-worry 📍訂閱鏈新聞頻道:https://linktr.ee/abmedia.io
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #121 · 20 јул.
Регулярно требуется преобразовать какой-либо текст в максимально совместимый текст для URL, имени файла, имени объекта в каком-то софте и тд. Требования совместимости простые: в тексте должны быть только допустимые символы. Обычно это a-z, 0-9 и "_" или "-". То есть, только прописные буквы латинского алфавита и цифры (как пример). Допустим, нам нужно название статьи в блоге преобразовать в slug для добавления его в URL этой статьи. Как это лучше всего сделать? В Django по умолчанию есть готовая функция slugify для таких случаев. Но я её никогда не использую. Почему? Потому что её недостаточно! Приведём пример >>> from django.utils.text import slugify >>> slugify('This is a Title') 'this-is-a-title' Пока всё отлично >>> slugify('This is a "Title!"') 'this-is-a-title' Спец символы удалились, всё хорошо. >>> slugify('Это заголовок статьи') '' Вот и приехали 😢. Если текст не английский то буквы просто игнорируются. Можно это поправить >>> slugify('Это заголовок статьи', allow_unicode=True) 'это-заголовок-статьи' Но тогда мы не вписываемся в условие. У нас появилась кириллица в тексте. Так как я часто пишу сайты для русскоязычных пользователей эта проблема весьма актуальна. Я не использую стандартную функцию и всегда пишу свою. Оригинал я не беру в расчёт и пишу полностью свою функцию. И так, по порядку: 🔸1. Исходный текст: >>> text = 'Мой заголовок №10 😁!' Взял специально посложней со специальными символами. 🔸2. Транслит Необходимо сделать транслит всех символов в латиницу. Здесь очень выручает библиотека unidecode. Помимо простого транслита кириллицы в латиницу она умеет преобразовывать спец символы и иероглифы в текстовые аналоги. from unidecode import unidecode >>> unidecode("Ñ Σ ® µ ¶ ¼ 月 山") 'N S (r) u P 1/4 Yue Shan' Очень крутая библиотека, советую👍 В нашем случае получаем такое преобразование: >>> text = unidecode(text) >>> print(text) 'Moi zagolovok No. 10 !' Отличный транслит. Смайл просто удалился, хотя я ждал что-то вроде :). Ну и ладно, всë равно невалидные символы. А еще наш код уже поддерживает любой язык, будь то хинди или корейский. 🔸4. Фильтр символов Unidecode не занимается фильтрацией по недопустимым символам. Это мы делаем в следующем шаге через regex. Просто заменим все символы на "_" если они вне указанного диапазона. >>> text = re.sub(r'[^a-zA-Z0-9]+', '_', text) >>> print(text) 'Moi_zagolovok_No_10_' Символ "+" в паттерне выручает когда несколько недопустимых символов идут рядом. Все они заменяются на один символ "_". 🔸5. Slugify Осталось удалить лишние символы по краям и сделать нижний регистр >>> text = text.strip('_').lower() >>> print(text) 'moi_zagolovok_no_10' Получаем отличный slug! 😎 🌎 Полный код в виде функции. ______________ PS. Проверку что в строке остался хоть один допустимый символ я бы вынес в отдельную функцию. #libs#tricks#django
Пребарај: #stagflation
@abmedia_news · Post #23763 · 10.04.2026 г., 02:02
【🚀傳統金融|油價居高不下,CPI 公布在即,停滯性通膨真會發生嗎? 】 #CPI#Stagflation 📍請見報導: https://abmedia.io/us-pce-shows-stagflation-worry 📍訂閱鏈新聞頻道:https://linktr.ee/abmedia.io
Hashtags
@gsbe_uz · Post #2555 · 04.08.2025 г., 05:34
📊IQTISODIY TERMINOLOGIYA 📊Stagflyatsiya — bu iqtisodiyotda bir vaqtning o‘zida inflyatsiya (ya’ni narxlar o‘sishi) va iqtisodiy o‘sishning sekinlashishi yoki iqtisodiy pasayish (masalan, ishsizlikning ortishi) kuzatiladigan holatdir. 🚩Ma’lumot uchun:Stagflyatsiya atamasi ilk bor 1960-yillarda Buyuk Britaniyada qo‘llangan bo‘lib, eng mashhur misol sifatida 1973-1981-yillar oralig‘ida AQSHdagi neft inqirozidan keyingi davr ko‘rsatiladi. Bu vaqtda ishlab chiqarish sekinlashgan, inflyatsiya oshgan va ishsizlik yuksalgan edi. Stagflyatsiyaning 3 asosiy belgilari: 📈 Inflyatsiya – tovar va xizmatlar narxining uzluksiz oshishi 📉 Iqtisodiy o‘sishning sekinlashuvi yoki tanazzul 📉 Yuqori ishsizlik – ish topa olmayotgan odamlar soni ko‘payadi 🔍 Stagflyatsiya sabablari nimalar bo‘lishi mumkin? 📊 Energiya narxlari oshib ketishi – masalan, neft yoki gaz qimmatlashsa, har narsaning narxi ko‘tariladi. 👫 Ishlab chiqarish xarajatlari ko‘payadi – xom ashyo yoki ishchi kuchi qimmatlashadi. 🌍 Tashqi shoklar – urush, sanksiyalar, pandemiya, global ta’minot zanjirlarining uzilishi. 🇷🇺Подробнее #GSBE#GraduateSchool#EconomicTerms#Stagflation 🔝Web-site |🔝Facebook | 🔝Instagram | 🔝Youtube
@abmedia_news · Post #23717 · 08.04.2026 г., 05:30
【🚀商業應用|IMF 警告:伊朗戰爭恐引發全球停滯性通膨,石油供應驟減 13% 】 #IMF#Iran#War#Oil#Stagflation 📍請見報導: https://abmedia.io/imf-warns-iran-war-stagflation-oil-supply-drop 📍訂閱鏈新聞頻道:https://linktr.ee/abmedia.io
Hashtags
@CryptoM · Post #65115 · 11.04.2026 г., 03:35
🚀 Global Economy's Oil Dependency Declines Since 1970s, Bank of America Reports On April 11, Jin10 reported that a Bank of America research note dated April 10 highlighted a significant reduction in the global economy's dependency on oil since the 1970s. According to Jin10, the amount of oil required to produce the same scale of GDP today is only one-third of what was needed in the 1970s. The OPEC crisis and subsequent oil shocks were once considered severe stagflation events. However, the current economy is more resilient to similar energy shocks. #GlobalEconomy#OilDependency#BankOfAmerica#OPEC#EnergyShocks#Stagflation#GDP#OilCrisis#EconomicResilience
@CryptoM · Post #64823 · 10.04.2026 г., 02:35
🚀 Goldman Sachs Predicts Singapore's Monetary Policy Tightening Goldman Sachs has released a report suggesting that the Monetary Authority of Singapore (MAS) may implement a 'moderate' monetary policy tightening this month. According to Jin10, the report emphasizes that MAS's primary goal is to stabilize core inflation. Given the upward risks to the core inflation outlook, a tighter monetary policy stance is deemed necessary. However, Goldman Sachs also notes that oil shocks typically exacerbate stagflation risks, and the duration of Middle Eastern conflicts remains highly uncertain. Goldman Sachs forecasts that MAS will increase the slope of the Singapore dollar's nominal effective exchange rate policy band by 50 basis points, while maintaining the width and level of the band unchanged. The Monetary Authority of Singapore is scheduled to release its monetary policy statement this Tuesday. #GoldmanSachs#Singapore#MAS#MonetaryPolicy#Inflation#CoreInflation#PolicyTightening#CentralBank#ExchangeRate#Macroeconomics#Economy#Stagflation#InterestRates#GlobalEconomy
@CryptoM · Post #64792 · 10.04.2026 г., 00:06
🚀 Global Economic Concerns Amid Middle East Tensions According to Jin10, a report by China International Capital Corporation (CICC) highlights that since March, concerns over conflicts involving the U.S., Israel, and Iran, along with potential blockages in the Strait of Hormuz, have triggered a market-wide risk aversion. This has led to declines in most asset classes, excluding oil and agricultural products, raising fears of stagflation. CICC acknowledges the undeniable impact of supply shocks, which could potentially slow overall economic growth. However, if the Strait of Hormuz gradually reopens, the geopolitical risks might exacerbate the K-shaped economic divergence, leading to increased investment activity while cooling consumption and employment. In the context of accelerated AI substitution and an inherently cooling labor market, inflation in resource and capital goods is unlikely to create a 'wage-inflation' spiral. From this perspective, CICC suggests that the mainstream narrative of global stagflation might be overstated. The report reiterates the view held since the beginning of the year that, amid an intensified K-shaped economy, liquidity recovery from its trough, and sustained fiscal expansion, the global nominal economic cycle driven by investment is expected to resume its upward trend. This will likely lead to continued rebalancing of global funds across sectors, asset classes, and regions, benefiting a range of physical assets and emerging markets. #GlobalEconomy#MiddleEastTensions#GeopoliticalRisk#Stagflation#SupplyShock#EconomicGrowth#KShapedRecovery#Investment#AIImpact#LaborMarket#Inflation#LiquidityRecovery#FiscalExpansion#EmergingMarkets#AssetAllocation
@CryptoM · Post #65243 · 12.04.2026 г., 08:27
🚀 Iran's Nuclear Concessions Could Be Key to U.S. Strategy, Citic Securities Says Citic Securities stated on April 12 that if Iran were to abandon uranium enrichment, it would represent a significant achievement for the U.S., particularly for U.S. President Donald Trump, who could use it to appease domestic concerns. According to Jin10, the ongoing conflict has already negatively impacted the midterm elections, necessitating a swift resolution. Since the Iranian Islamic Revolution, the U.S. has lost control over Iran's nuclear capabilities, a challenge that has persisted through multiple U.S. presidencies, affecting America's Middle East strategy. The political impact of Iran's potential nuclear disarmament is seen as more significant than the indirect effects of oil prices and inflation on elections. Consequently, the Trump administration might consider compromises on issues like control over the Strait of Hormuz. From Iran's perspective, the conflict has demonstrated that blocking the strait and threatening Middle Eastern infrastructure are powerful leverage tools, potentially more impactful than nuclear threats. These actions, which can be executed with low-cost drones, pose significant risks to the U.S. and global economies, providing Iran with a strategic counterbalance. Repeated near-escalations to large-scale infrastructure damage suggest that the likelihood of extreme war escalation is low, reducing the chances of extreme oil prices, severe recession, or stagflation. #Iran#NuclearConcessions#USStrategy#CiticSecurities#DonaldTrump#UraniumEnrichment#MiddleEastStrategy#IranUSRelations#StraitOfHormuz#OilPrices#Inflation#PoliticalImpact#TrumpAdministration#IranianLeverage#GlobalEconomy#InfrastructureDamage#WarEscalation#OilPrices#Stagflation