TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #76 · 27 апр.

Ранее я делал серию постов про битовые операторы. Вот вам ещё один наглядный пример как это используется в Python в модуле re. Чтобы указать флаг для компилятора нам надо указать его после передаваемой строки. Например, добавляем флаг для игнорирования переноса строки. pattern = re.compile(r"(\w+)+") words = pattern.search(text, re.DOTALL) А как указать несколько флагов? Ведь явно будут ситуации когда нам потребуется больше одного. Кто читал посты по битовые операторы уже понял как. pattern.search(text, re.DOTALL | re.VERBOSE) А теперь смотрим исходники, что находится в этих атрибутах? Не удивительно, степени двойки. Почему? Потому что каждое следующее значение это сдвиг единицы влево. >>> for n in [1, 2, 4, 8, 16, 32, 64, 128, 256]: >>> print(bin(n)) 0b1 0b10 0b100 0b1000 0b10000 0b100000 0b1000000 0b10000000 0b100000000 Чтобы было понятней, давайте напишем тоже самое но иначе, добавим ведущие нули: 000000001 000000010 000000100 000001000 000010000 000100000 001000000 010000000 100000000 Не понятно что тут происходит? Читай три поста про битовые операторы начиная с этого ➡️https://t.me/pythonotes/45 В общем, это пример применения побитовых операций в самом Python. Теперь вы знаете Python еще немного лучше) #tricks#regex#libs

Резултати

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

Пребарај: #goldprice

当前筛选 #goldprice清除筛选
FXStreet Crypto News

@fxstreetcrypto · Post #53473 · 23.03.2026 г., 13:39

🎲What if Gold is no longer the safe haven you think it is? Geopolitical storm brewing 🌩 US vs Iran. Strait of Hormuz. Oil surging. Inflation creeping back. And markets? Cracking. 📉 S&P 500: 4 losing weeks straight 🥈Silver -10% and falling ₿ BTC under $70K | $300M wiped in a day 🥇Gold breaking support, $3,870 in sight? The FXStreet team breaks it ALL down. Levels, catalysts, what comes next. 🔍 👉Watch before the next move happens. https://www.youtube.com/watch?v=rjhGCvZ95QI #GoldPrice#MarketAnalysis#GeopoliticsNews

Crypto M - Crypto News

@CryptoM · Post #64929 · 10.04.2026 г., 10:26

🚀 PRECIOUS METALS | Long-Term Gold Rebound Anticipated Amid Middle East Conflict Gold is expected to experience a long-term rebound despite the current market disruptions caused by the Middle East conflict, according to financial institutions such as ANZ Banking Group and Goldman Sachs. Bloomberg posted on X, highlighting that these banks foresee a recovery in gold prices as geopolitical tensions continue to influence market dynamics. The ongoing conflict has introduced volatility, but experts believe that gold's status as a safe-haven asset will support its value in the long run. Investors are advised to consider the potential for gold's resurgence as part of their strategic planning. #PreciousMetals#GoldRebound#MiddleEastConflict#SafeHaven#GeopoliticalTensions#MarketVolatility#GoldPrice#Investing#FinancialInstitutions

Crypto M - Crypto News

@CryptoM · Post #65334 · 13.04.2026 г., 00:14

🚀 PRECIOUS METALS | Global Central Bank Gold Purchases Show Resilience, Citic Securities Reports Citic Securities has released a report indicating that the global trend of central banks purchasing gold remains structurally resilient. According to Jin10, the market may be overestimating the driving forces and impact mechanisms behind this trend. The report outlines several key points: 1) The proportion of non-standard channels and domestic storage in gold purchases is rising, reflecting the strengthened attribute of gold as a 'sovereign safe asset.' 2) The current wave of gold buying goes beyond conventional reserve management and should not be directly equated with de-dollarization. The primary logic for central banks holding gold remains crisis hedging and reserve diversification. 3) Recent disturbances, such as temporary reductions by central banks in Turkey and Russia due to fiscal pressures, are tactical and do not alter the global net buying pattern. 4) Central bank gold purchases are a long-term force elevating the gold price center, but their behavior of buying on dips means they play more of a supporting role. Variables like real interest rates have a more significant impact on gold prices. 5) The gap in gold reserve proportions between emerging market central banks and developed countries is substantial, indicating that the current cycle of central bank gold purchases is far from over. Citic Securities is optimistic about medium to long-term allocation opportunities but advises monitoring signals of weakened correlation between gold and risk assets in the short term as a key entry point for buying on dips. #PreciousMetals#Gold#CentralBank#GoldPurchases#SafeAsset#ReserveDiversification#EmergingMarkets#GoldPrice#Investment#FinancialMarkets