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 слични објави

Пребарај: #procrypto

当前筛选 #procrypto清除筛选
Venture Village Wall 🦄

@venturevillagewall · Post #3863 · 13.01.2025 г., 10:00

Trump's Crypto Council to Include CEOs The Trump administration is set to form a crypto advisory council, appointing around 24 CEOs and industry leaders. The council aims to advise on digital asset policies, collaborate with Congress on crypto legislation, and work with agencies like the SEC and CFTC to foster a pro-crypto environment. A possible outcome could be the establishment of a strategic Bitcoin reserve for the U.S. Read more: Wu Blockchain News #Crypto#Trump#SEC#CFTC#Bitcoin#Legislation#Finance#DigitalAssets#AdvisoryCouncil#USPolicy#ProCrypto#Innovation#MarketTrends#Leadership#TechNews#Blockchain#Government#Investments#VC#USEconomy

Venture Village Wall 🦄

@venturevillagewall · Post #4007 · 28.01.2025 г., 10:00

Metaplanet Plans $745M Bitcoin Purchase Tokyo-listed Metaplanet aims to raise ¥116 billion (approx. $745M) through 21 million share subscriptions at 0% discount for Bitcoin acquisitions. This represents one of the largest financing plans for Bitcoin by any Asian publicly traded company. Detailed info available here: link. Meanwhile, U.S. Bitcoin and Ethereum ETFs received $1.9B in inflows during Trump's first week, bringing total digital asset inflows for 2025 to $4.8B. U.S. Senate also confirmed pro-crypto Scott Bessent as Treasury Secretary, expected to influence crypto regulations amid heightened interest. #Bitcoin#ETF#Crypto#Investment#Metaplanet#Asia#Treasury#DigitalAssets#BTC#ETH#Finance#NASDAQ#WallStreet#MarketTrends#Inflows#Securities#Cryptocurrency#USeconomy#Regulations#Trump#ProCrypto

Venture Village Wall 🦄

@venturevillagewall · Post #3761 · 31.12.2024 г., 16:00

Bitcoin Surpasses $100K: Retail Investors Return 💰 Bitcoin recently soared above $100,000, briefly reaching $104K, before settling below $91K. This surge is linked to key pro-crypto appointments in the Trump administration, including Scott Bessent for Treasury and Paul Atkins as SEC chair. 🚀 Retail interest is on the rise, with older cryptos, termed 'dino coins', gaining attention. XRP reclaimed its place as the fourth largest cryptocurrency as investors return to the market. Millennial parents are now considering Bitcoin as a safer option, encouraged by large firms like Blackrock. 📈 Ethereum is benefitting too, with ETF inflows exceeding Bitcoin on multiple occasions and blue-chip NFTs based on ETH seeing increased floor prices. 🔍 As the crypto market evolves, understanding the current market cycle can aid investment strategies. 📅 Major firms dominate crypto ETF races, with BlackRock leading in both Bitcoin and Ethereum spaces. For more details, check the full article here: Leviathan News. #Bitcoin#Crypto#VC#XRP#Ethereum#NFT#Blackrock#ETF#Investment#Retail#DePIN#ProCrypto#MarketTrends#DigitalAssets#Milestone#MarketCycle#Altcoins#Trump#CryptoCommunity#DinoCoins#PaulAtkins