@ethereumglobalnews · Post #1047 · 18.10.2025 г., 10:58
🇺🇸🇨🇳【 白宫经济顾问 Hassett:我们并未与中国交战,有信心恢复合作关系 】 #KevinHassett 的發表指出若美中政策態度持續降溫,將有助提振風險資產市場,並進一步推動資金回流 #ETH 與 #BTC 等加密資產板塊。 #白宮聲明影響#tradewars#市場信心回穩 🤣 以太區塊鏈新聞 🗓 2025-10-18 EthereumGlobalNews 💵#中美貿易
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #22 · 19 јан.
Заметка начинающим, которые часто сталкиваются с подобной непоняткой. Ситуация следующая, есть список файлов: names = [ 'image.bmp', 'second.txt.bkp', 'data.db', '.config.cfg', 'file.ext.bkp' ] И мы хотим убрать у них окончание ".bkp". Не знаю зачем, пример довольно надуманный) Но суть он показывает, а это главное. Те, кто еще не очень знаком с библиотекой os.path или pathlib, вероятно решат обработать имена как строки. И тут вполне подойдет метод строки strip(). Что делает этот метод? Он отрезает указанные символы по обеим сторонам строки. Если ничего не указать, то убирает невидимые символы (пробелы, табуляции и переносы строк). В нашем случае будет выглядеть вот так: >>> name.strip('.bkp') То есть просим удалить строку '.bkp' по краям имени файла, если таковая есть. Можно применить аналогичный метод rstrip(), чтобы отрезать только справа, но для этого примера используем обычный. >>> for name in names: >>> print(name.strip('.bkp')) image.bm second.txt data.d config.cfg file.ext Хм, что-то не то с нашими именами! Что случилось??? Видим нежелательное переименование в именах, где и близко не было указанной строки '.bkp' А дело всё в том, что данный метод ищет не указанную строку, а указанные символы, и не важно в каком порядке. Для метода strip() строка '.bkp' это не паттерн для поискаа список символов. Потому он отрезал симовол 'p' от '.bmp' и удалил точку из файла '.config.cfg'. Как тогда правильно заменить именно паттерн? Для начинающего можно посоветовать метод строки replace(), который как раз использует для замены указанную строку целиком. В нашем примере заменим её на пустую строку. >>> for name in names: >>> print(name.replace('.bkp', '')) image.bmp second.txt data.db .config.cfg file.ext Уже лучше, но помните, это лишь пример про strip(). Для работы с именами файлов есть способы и более "правильные", дающие однозначно верный результат. Я взял файлы только в качестве примера. Даже replase() тут может сделать не то что ожидаем. Просто впредь будьте внимательны с этим strip(). #basic
Hashtags
Пребарај: #kevinhassett
@ethereumglobalnews · Post #1047 · 18.10.2025 г., 10:58
🇺🇸🇨🇳【 白宫经济顾问 Hassett:我们并未与中国交战,有信心恢复合作关系 】 #KevinHassett 的發表指出若美中政策態度持續降溫,將有助提振風險資產市場,並進一步推動資金回流 #ETH 與 #BTC 等加密資產板塊。 #白宮聲明影響#tradewars#市場信心回穩 🤣 以太區塊鏈新聞 🗓 2025-10-18 EthereumGlobalNews 💵#中美貿易
@CryptoM · Post #64639 · 09.04.2026 г., 12:20
🚀 U.S. White House Economic Adviser: Fed's Balance Sheet Reduction Should Be Gradual The Director of the U.S. White House National Economic Council, Kevin Hassett, has emphasized the importance of a gradual approach to the Federal Reserve's balance sheet reduction. According to Jin10, Hassett highlighted the need for a measured strategy to ensure economic stability. This statement comes amid ongoing discussions about the Federal Reserve's monetary policy and its impact on the broader economy. Hassett's comments reflect the administration's cautious stance on managing the balance sheet to avoid potential disruptions in financial markets. #WhiteHouse#EconomicAdviser#FederalReserve#BalanceSheetReduction#MonetaryPolicy#EconomicStability#FinancialMarkets#KevinHassett
@CryptoM · Post #64643 · 09.04.2026 г., 12:25
🚀 White House Economic Advisor Advocates for Lower Interest Rates The White House National Economic Council Director, Kevin Hassett, has expressed that interest rates should be lower. According to BlockBeats, Hassett anticipates that Jerome Powell will not continue as a Federal Reserve governor. He is confident that Christopher Waller will assume the role of Federal Reserve Chair in May. #WhiteHouse#EconomicAdvisor#InterestRates#FederalReserve#KevinHassett#JeromePowell#ChristopherWaller#MonetaryPolicy
@CryptoM · Post #65073 · 10.04.2026 г., 19:34
🚀 White House Economic Advisor: Limited Impact on GDP from Recent Event White House National Economic Council Director Kevin Hassett stated that the recent event is expected to have a limited impact on the United States GDP. According to Jin10, Hassett emphasized that while the situation is being closely monitored, the overall economic outlook remains stable. The administration continues to assess the potential implications and is prepared to implement measures if necessary to mitigate any adverse effects. Hassett's comments come amid ongoing discussions about the resilience of the U.S. economy in the face of various challenges. #WhiteHouse#EconomicAdvisor#GDP#USEconomy#EconomicOutlook#KevinHassett#EconomicStability#EconomicPolicy
@CryptoM · Post #65001 · 10.04.2026 г., 13:24
🚀 White House Predicts Energy Price Drop with Hormuz Strait Reopening The White House National Economic Council Director, Kevin Hassett, announced that the Hormuz Strait could reopen within two months. According to Odaily, Hassett stated that once the strait is operational, energy prices are expected to decrease rapidly. The number of vessels passing through the Hormuz Strait has decreased by 10% compared to normal levels. #WhiteHouse#EnergyPrices#HormuzStrait#EconomicCouncil#KevinHassett#EnergyMarket#OilPrices#GlobalTrade#Shipping
@CryptoM · Post #64652 · 09.04.2026 г., 12:36
🚀 White House Predicts Gasoline Price Drop with Hormuz Strait Opening The White House National Economic Council Director, Kevin Hassett, has indicated that gasoline prices are expected to decrease swiftly once the Strait of Hormuz is reopened. According to Odaily, Hassett mentioned that discussions have been held with allies to ensure a stable supply of U.S. oil. Additionally, consultations regarding the purchase of oil and natural gas have been conducted with allied nations. #WhiteHouse#GasolinePrices#HormuzStrait#OilSupply#USEconomy#EnergyPolicy#NaturalGas#KevinHassett#GlobalTrade#OilMarket