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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #242 · 7 мај

Теперь запакуем строку. В этом случае следует передавать тип данных bytes. >>> struct.pack('=s', b'a') b'a' Для записи слова следует указывать количество символов. >>> struct.pack('=5s', b'hello') b'hello' Кстати, запакованный вид соответствует исходному тексту. Всё верно, символ есть в таблице ASCII, то есть его код попадает в диапазон 0-127, он может быть записан одним байтом и имеет визуальное представление. А вот что будет если добавить символ вне ASCII >>> struct.pack(f'=s', b'ё') SyntaxError: bytes can only contain ASCII literal characters. Ошибка возникла еще на этапе создания объекта bytes, который не может содержать такой символ. Поэтому надо кодировать эти байты из строки. >>> enc = 'ёжик'.encode('utf-8') >>> struct.pack(f'={len(enc)}s', enc) b'\xd1\x91\xd0\xb6\xd0\xb8\xd0\xba' Заметьте, длина такой строки в байтах отличается от исходной длины, так как символы вне ASCII записываются двумя байтами и более. Поэтому здесь формат создаём на лету, используя получившуюся длину как каунтер токена. #libs#basic

Hashtags

Резултати

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

Пребарај: #rumble

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

@venturevillagewall · Post #3967 · 24.01.2025 г., 04:00

Rumble Launches Own Bitcoin Wallet 🟠 Rumble announces a new #Bitcoin wallet for creators to facilitate direct transactions on the platform. In South Korea, Bithumb has introduced AERO and SOLV trading pairs with Korean won. SOLV supports one of the largest Bitcoin staking protocols. Read more #Bitcoin#Crypto#VC#Rumble#Bithumb#AERO#SOLV#Staking#SouthKorea

Venture Village Wall 🦄

@venturevillagewall · Post #3680 · 24.12.2024 г., 08:10

Investments Surge in Innovative Platforms A startup has raised nearly $50 million after seven years of self-funding, initiating a trend of significant investment in platforms that facilitate companies selling third-party services. Notably, similar platforms across various sectors have also attracted large funding this year, signaling a ripe market for investment in this area. In addition, recent reports highlight key developments in the tech sector, such as a sharp decline in YouTube traffic in Russia, the purchase of advertising services by ‘Avito’ and T2, and the closure of electric aircraft startup Lilium after failing to secure funding. Moreover, European AI startups have attracted $13.7 billion in venture capital this year, comprising 25% of the continent's VC funding. Read more about these developments here: https://fastfounder.ru/takaja-shema-raboty-rezko-stala-vostrebovannoj/ #Startup#Investment#Funding#Platforms#AI#Tech#YouTube#AdTech#Lilium#VentureCapital#Ethereum#Tether#Rumble#Advertising#MarketTrends#Growth#FinTech#Crypto#Inflow#Development#EuropeanMarket

Venture Village Wall 🦄

@venturevillagewall · Post #3824 · 08.01.2025 г., 22:00

Cuban Prefers Bitcoin Over Gold in Crisis Billionaire Mark Cuban states he prefers holding Bitcoin over gold in economic downturns, citing higher value potential. In Q4 2024, MicroStrategy purchased 194,180 BTC. Companies like KULR Technology, Rumble, and Genius Group are also adding Bitcoin to their balance sheets. Meanwhile, Do Kwon faces trial in 2026 for TerraUSD's $40 billion collapse. Additionally, 50 million USDC was burned at USDC Treasury. Analysts from Fidelity Digital Assets predict significant Bitcoin growth in 2025, potentially driven by countries accumulating Bitcoin as strategic reserves. #Bitcoin#Crypto#VC#MarkCuban#MicroStrategy#KULR#Rumble#GeniusGroup#DoKwon#TerraUSD#USDC#Fidelity#ETB#DigitalAssets#EconomicCrisis#Forecast#Cryptocurrency

Venture Village Wall 🦄

@venturevillagewall · Post #3676 · 23.12.2024 г., 16:00

Funding Boosts RWA and DeFi Ventures Usual Labs secures $10M in Series A funding led by Binance Labs and Kraken Ventures. EYWA, a cross-chain liquidity protocol, attracts $8.5M from major investors including Curve's founder. Core product CrossCurve surpasses $21M in TVL. Other funding highlights include Avalon Labs raising $10M, Valhalla $1.5M, Rumble $775M, and Allo $2M. Notably, CryptoQuant indicates substantial Bitcoin accumulation by ETFs and institutions, now holding 31% of circulating supply. 📈 #Funding#Stablecoin#DeFi#EYWA#Liquidity#CrossChain#Investors#AvalonLabs#Valhalla#Rumble#Allo#CryptoQuant#Binance#Kraken#TVL#Bitcoin#ETF#Curve#Trading#Tokenization