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

Резултати

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

Пребарај: #simplex

当前筛选 #simplex清除筛选
TokenPocket

@tokenpocket_channel · Post #765 · 06.09.2023 г., 13:55

【TokenPocket Retweeted】 Retweeted SimplexCC : We’re thrilled to announce a new partnership with TokenPocket_TP🚀 Now 20 million + users can securely buy tokens through SimplexCC on the Token Pocket platform 😎 Start your crypto journey with #Simplex today! #Buycrypto#Onramp ⏵ [[1]](https://video.twimg.com/ext_tw_video/1699414869848571904/pu/vid/avc1/1200x674/RdzHWTjwneU4r8Bm.mp4?tag=12) 【Details】https://twitter.com/SimplexCC/status/1699417487580782760 【Powered By】Crypto Box

GitHub Trends

@githubtrending · Post #14731 · 21.05.2025 г., 12:00

#cplusplus#high_performance#interior_point_method#linear_optimization#mixed_integer_programming#parallel#quadratic_programming#simplex HiGHS is a free, high-performance software that solves large and complex optimization problems like linear, quadratic, and mixed-integer programming. It works fast on many computers, including Linux, MacOS, and Windows, without needing extra software. You can use it through various programming languages like Python, C, C#, and Fortran, making it easy to integrate into your projects. HiGHS supports both serial and parallel computing, and it is advancing GPU acceleration for even faster solutions. This helps you efficiently find the best solutions for planning, scheduling, and decision-making problems in science, engineering, and business. Installation is straightforward, and detailed documentation is available to guide you[1][2][3][4]. https://github.com/ERGO-Code/HiGHS

Telegram & TON NEWS

@all_telegram_ton_news · Post #23279 · 28.02.2026 г., 11:58

🚀Degen Privacy Stack 2026: Own Your Comms with No-KYC Crypto Tools – From eSIMs to Encrypted Chats! here's the ultimate blueprint for true digital sovereignty – all powered by crypto, privacy keys, and zero KYC hassles. Stay ghosted in a surveillance world: - Degenphone eSIM Mastery: Tokenize real eSIM phone numbers as NFTs on Solana/TON. Own a working number for SMS, calls, and data plans – mint, trade, activate anonymously via blockchain. No ID, no docs – just your wallet and privacy keys for instant, traceless global connectivity. - tMail for Ephemeral Emails: Grab disposable, auto-expiring emails without KYC. Crypto payments optional for premium anonymity – link to your setups for secure logins that vanish post-use, keeping your real identity locked away. - Nostr Protocol Freedom: Decentralized social with pub/priv keys – no email/phone signup, pure P2P relays. Zap sats via Lightning, build uncensorable networks. Own your data, migrate keys seamlessly for ultimate control. - SimpleX Chat Supreme: E2EE messenger with no user IDs – connect via QR/one-time links. Amp up with white noise vector sessions: Inject random noise into traffic for anti-analysis, quantum-resistant encryption, and self-destructing messages. - Vector Messenger Edge: Nostr-based, zero-metadata encryption for texts, media, voice. BIP-39 wallet integration turns your account into a crypto vault – plausible deniability and no-compromise privacy. - White Noise App Stealth: Nostr-powered secure messenger with MLS end-to-end encryption. Forward/post-compromise security, identity-free – massive scalable groups without leaks. - 0xChat Lightning Vibes: Nostr secure chat with private key login – no reg, E2EE DMs/groups, voice/video, Cashu/Lightning payments. Encrypted everything, alias keys for extra secrecy. - Video Calls on Honey HiveTalk: Nostr-first conferencing at https://honey.hivetalk.org – Lightning-powered rooms, desktop-optimized for private group calls. Zap to join/active, no KYC barriers. Stack these for crypto trades, activism, or pure freedom – own your phone, email, chats with crypto keys only. No Big Tech oversight! #DegenPrivacy#NoKYC#CryptoSovereignty#Nostr#SimpleX#VectorMessenger#WhiteNoiseApp#0xChat#Degenphone#tMail#HiveTalk#PrivacyTools2026 Your fave stack addition? Zap or reply! 🔒👻