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

Резултати

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

Пребарај: #ethiopiantradition

当前筛选 #ethiopiantradition清除筛选

🌟 FROM ADDIS TO SILICON VALLEY: YOUNG ETHIOPIANS BUILDING THE FUTURE! የአዲስ አበባ ወደ ሲሊኮን ቫሊ፡ የኢትዮጵያ ወጣቶች ወደፊቱን እየገነቡ ነው! Your country is not your obstacle - it's your SUPERPOWER! 💪 ሀገርህ መሰናክል አይደለም - ሱፐር ኃይልህ ነው! 🏆 REAL SUCCESS STORIES: 💰BETHLEHEM TILAHUN ALEMU | ብርሀን ጥላሁን ዓለሙ • Founded soleRebels (footwear company) at 25 • $10M+ revenue, exports to 50+ countries • Made from recycled tires + traditional weaving • Featured in Forbes, Times Magazine • "I turned our grandmother's craft into global brand!" 🎵TEDDY AFRO & MUSIC EMPIRE | ቴዎድሮስ ካሳሁን • Albums sold 2M+ copies worldwide • Concert revenues $500K+ per show • African music ambassador to the world • Started from Addis Ababa streets 🌱AGRITECH REVOLUTION: • 2030 Vision: Digital farming apps • EthioSIS: Soil mapping technology (government project) • Young farmers earning 300% more using smartphones • Export potential: $2B+ organic coffee market 👩‍💼WOMEN ENTREPRENEURS: • Maya Haile-Mariam: Tech startup $5M valuation • Selamawit Chekol: Fashion brand expanding to USA • Martha Tilahun: Food processing empire 💡YOUR ADVANTAGES AS ETHIOPIAN: ✅ Ancient culture = unique design aesthetics ✅ Coffee heritage = premium brand story ✅ 13-month calendar = exclusive time management apps ✅ Multilingual (80+ languages) = translation services ✅ High altitude = athletic training programs ✅ History (3000+ years) = educational content gold mine 🚀START TOMORROW - 3 SIMPLE STEPS: 📱 STEP 1: DIGITAL PRESENCE • Create Instagram/TikTok showcasing Ethiopian culture • Use trending hashtags: #EthiopianTradition#AfricanInnovation • Post daily content in English + Amharic 💰 STEP 2: MONETIZE YOUR KNOWLEDGE • Teach Amharic online (Italki, Preply): $15-25/hour • Sell handmade crafts on Etsy: $20-200+ per item • Create YouTube cooking channel: Ethiopian cuisine going viral! 🌍 STEP 3: THINK GLOBAL • Partner with diaspora communities (2M+ Ethiopians worldwide) • Export coffee/spices through e-commerce • Offer virtual Ethiopian cultural experiences 📞RESOURCES TO START: • IceAddis: Startup incubator in Addis Ababa • Ethiopia Commodity Exchange: Connect with coffee buyers • Women in Tech Ethiopia: Female entrepreneurs network • TechnoServe: Business development programs 💎GOLDEN RULE: "Every problem in Ethiopia = business opportunity for smart youth!" 🔥MOTIVATIONAL CLOSE: Your ancestors built Lalibela without cranes. You can build digital empires with just a smartphone! The world needs what Ethiopia has. Your job is to package it beautifully and sell it globally! 🌍✨ የአባቶችህ ላሊበላን ክሬን ሳይጠቀሙ ገነቡት። አንተ ስማርትፎን ብቻ ተጠቅመህ ዲጂታል ግዛቶችን መገንባት ትችላለህ! ✨ Expert-reviewed content | Verified by Ethiopian business & tech specialists #EthiopianEntrepreneurs#StartupEthiopia#DigitalEthiopia#AfricanInnovation#ኢትዮጵያ#BusinessSuccess🇪🇹💰🚀