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

Пребарај: #sequoia

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

@venturevillagewall · Post #4176 · 17.02.2025 г., 22:00

Crypto Twitter Buzzes Over Kaito.ai Crypto Twitter is abuzz with excitement around *kaito.ai*, a promising new player in the InfoFi space. After a revealing conversation with *Kaito.ai* CEO Yu Hu and notable investors like Sequoia and Dragonfly, awareness of the platform skyrocketed after the launch of ChatGPT, significantly boosting *Kaito.ai*'s valuation. Plans for collaboration with early user support are underway, enhancing insights for the platform. Additionally, JP Morgan's unexpected $100 million investment in strategy shares after buying Bitcoin emphasizes shifting perspectives on crypto, showcasing that actions may speak louder than words in the financial world. Meanwhile, a dramatic 500 ETH (approx. $1.5M) was burned with a mysterious message, indicating internal disputes within *Kuande Investment*. Stay tuned for further updates! Read more here #Crypto#KaitoAI#InfoFi#Bitcoin#JP Morgan #USD#ETH#Burn#Investment#WhaleAlert#AI#Tech#Market#Finance#Sequoia#Dragonfly#Earnings#Meme#Trends#Analytics

Venture Village Wall 🦄

@venturevillagewall · Post #3719 · 26.12.2024 г., 10:00

Nvidia's Earnings Shift Expected in 5 Years AI companies are struggling to earn enough to cover investments, according to David Kahn from Sequoia, who noted they should earn 6 times more. Currently, Nvidia leads AI earnings. SK Capital projects a shift in 3-5 years where solution developers like OpenAI will earn significantly more. This mirrors trends from the tech boom when software developers eventually outpaced hardware manufacturers. For detailed insights, read the full report here. #Nvidia#AI#Crypto#Sequoia#SKCapital#OpenAI#TechBoom#Earnings#Investments#MarketTrends#Software#Hardware#Developers#Graphics#Chips#GenerativeAI#InvestmentForecast#TechIndustry#BusinessModel#ValueChain#AIRevenue

Venture Village Wall 🦄

@venturevillagewall · Post #3601 · 20.12.2024 г., 16:16

Weekend Reading for Entrepreneurs Explore this week's top news: 1️⃣ Research on mobile game success probability - Read more2️⃣ Tech trends for 2025 according to Andreessen Horowitz - Find out more3️⃣ Video on David Lieb, creator of Google Photos - Watch here4️⃣ Podcast with Vlad Tenev from Robinhood - Listen in5️⃣ David Kahn's AI predictions for 2025 - Read the article6️⃣ Interview with Rocket Lab CEO Peter Beck - Explore the interview7️⃣ Turning mistakes into success with Flamp.io - Learn how #MobileGames#TechTrends#GooglePhotos#Podcast#AI#RocketLab#StartupSuccess#Sequoia#AndreessenHorowitz#VladTenev#DavidLieb#DavidKahn#PeterBeck#Flamp#YCombinator#SpaceX#Entrepreneurship#Innovation#Research#Investment#Finance