@borkena · Post #5894 · 01.03.2026 г., 03:04
የሽግግር መንግስት ለምንድነው የሚያስፈልገን፣ እንዴትስ ይመሰረታል? https://shorturl.at/ckshB#Ethiopia#News#Amharic
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #32 · 7 фев.
Скорее всего уже слышали, что складывать строки через + это плохая практика. Падение производительности, и всё такое. Без лишних слов, давайте измерять: from timeit import timeit def t1(): # складываем 10 строк через + из переменной t = 'text' for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t2(): # склеиваем список строк через метод join arr = ['text'] * 10 for _ in range(1000): s = ''.join(arr) def t3(): # складываем через + но не из переменной а непосредственно инлайн объекты for _ in range(1000): s = 'text' + 'text' + 'text' + ... # всего 10 раз Теперь каждую строку склейки запустим по 10М раз >>> timeit(t1, number=10000) 0.21951690399964718 >>> timeit(t2, number=10000) 1.4978306379998685 >>> timeit(t3, number=10000) 0.2213820789993406 Хм, а нам говорили что через "+" это плохо и медленно ))) 😁 Тут стоит учитывать, что речь идёт о склейке множества длинных строк. Давайте изменим условия: def t4(): t = 'text'*100 for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t5(): arr = ['text'*100] * 10 for _ in range(1000): s = ''.join(arr) def t6(): for _ in range(1000): s = 'text'*100 + 'text'*100 + ... # всего 10 раз >>> timeit(t4, number=10000) 12.795130728000004 >>> timeit(t5, number=10000) 2.642637542999182 >>> timeit(t6, number=10000) 0.2184546610005782 Вот, уже другой разговор, сразу видна разница, в среднем в 6 раз. Но погодите, почему последний тест t6() по скорости такой же как и t3()? Ведь строки теперь в 100 раз длиннее! Это вопросы оптимизации кода, какие простые изменения ускоряют или замедляют выполнение программы. Мы столкнулись с примером обхода обращения к переменной. Например, именно так работает директива #define в С++, во время компиляции подставляя значение переменной вместо ссылки на неё. В Python это тоже работает, но часто ли вы сможете встретить такой способ работы со строками? К сожалению, способ почти только теоретический. В целом, тесты показали то, что мы хотели. Делаем выводы самостоятельно. Полный листинг 🌍 #tricks
Пребарај: #amharic
@borkena · Post #5894 · 01.03.2026 г., 03:04
የሽግግር መንግስት ለምንድነው የሚያስፈልገን፣ እንዴትስ ይመሰረታል? https://shorturl.at/ckshB#Ethiopia#News#Amharic
@borkena · Post #5268 · 16.11.2025 г., 18:47
Media, Translation, and Historical Accountability: The Case of the “Wax-and-Cloth Burning” Narrative in Key Anbessa (2025). Read more. https://borkena.com/2025/11/14/ethiopia-media-translation-and-historical-accountability-the-case-of-the-wax-and-cloth-burning-narrative-in-key-anbessa-2025/#Ethiopia#News#Amharic
@borkena · Post #5577 · 18.12.2025 г., 04:16
ኢትዮጵያን እንደ ዩጎዝላቪያ ሳይበትኗት እንታደጋት https://shorturl.at/n8pDo#Ethiopia#Amharic#politics
@borkena · Post #5771 · 08.02.2026 г., 20:36
ኢትዮጵያ ኤርትራ ወታደሮቿን በአስቸኳይ ከኢትዮጵያ ድንበር እንድታስወጣ በደብዳቤ ጠየቀች https://shorturl.at/pmTIY#Ethiopia#Eritrea#News#Amharic#conflict
@borkena · Post #5310 · 20.11.2025 г., 18:41
“ደፋሪ ወታደሮች ይጠየቁ” እናት ፓርቲ |የአፋር ግንባታ ፍጥጫ አይሏል|የአሜሪካ እጅ በኢትዮ... https://youtu.be/_aTwho0Y630?si=dm0KFl41RdoNM6XA#Ethiopia#News#Amharic#rape#EnatParty
@borkena · Post #5710 · 09.01.2026 г., 17:05
የቂሊንጦ ማረፊያ ማእከል የተጠርጣሪዎች ቁጥር ከአቅሙ በላይ በመሆኑ ከፍተኛ መጨናነቅ መፈጠሩን ኢሰመኮ ገለጸ https://shorturl.at/ZGRAI#Ethiopia#News#Amharic#Klinto#Qlinto
@borkena · Post #6155 · 14.04.2026 г., 18:28
በዓመት ከስምንት ሺህ በላይ ህጻናት ለካንሰር ተጋላጭ ናቸው መባሉ ፤ የፖሊስ ባለስልጣኗ ግድያ ፤ የቻይና ምላሽ እና ሌሎች ዜናዎች https://youtu.be/nlsyo5kl7wI"#Ethiopia#News#EthiopianNews#Amharic#Children#China#elephants
@borkena · Post #6044 · 18.03.2026 г., 15:20
25 የኢትዮጵያ ባንኮች የመፍረስ አደጋ ተጋርጦባቸዋል ፤ በደሴ ከተማ ለተሽከርካሪዎች የተላለው የሰዐት እላፊ እና ሌሎች ዜናዎች፡፡ ሙሉውን ከቻናላችን ያድምጡ፡፡ https://youtu.be/7C295S7INDs#Ethiopia#News#Amharic#Banks#NationalBank#EthiopianNews#ዜና
@borkena · Post #6191 · 21.04.2026 г., 13:07
በሲቪል ሰርቪስ ከ150 በላይ የሀሰተኛ የትምርህርት ማስረጃ ተገኘ መባሉ ፤ በመንግስት ደጋፊነት የሚተቸው አብን መዋቅራዊ በደል ድርሷል ማለቱ እና ሌሎች ዜናዎች ፡፡ https://youtu.be/y4-9eSmywW8#Ethiopia#News#Amharic#EthiopianNews#fakecredential#education#NAMA
@borkena · Post #6014 · 13.03.2026 г., 21:12
የጋሞ ዞን የተፈጥሮ አደጋ ያስነሳው ስሞታ ፤ አማራ ባንክ አተረፍኩ ማለቱ ፤ የተበከለ በርበሬ እና በድሬዳዋ የታፈነው አክቲቪስት https://youtu.be/6b1O6LsLSc0#Ethiopia#EthiopianNews#Gamo#AmharaBank#toxinberbere#Amharic#ዜና
@addisstandardeng · Post #21665 · 10.03.2026 г., 10:03
News: #Google Expands AI Search to 13 #African Languages, Including #Ethiopia’s Afaan Oromoo, Amharic, and Somali Google has expanded its artificial intelligence–powered search tools to support 13 African languages, including Ethiopian languages #Afaan_Oromoo, #Amharic, and #Somali, in a move aimed at widening access to digital services across the continent. The update introduces local language support for Google’s #AI search features, enabling users to interact with the platform using text, voice, or images in their preferred languages. The company said the expansion is intended to make AI tools more accessible to millions of African users who rely on local languages for everyday communication. In addition to Afaan Oromoo, Amharic, and Somali, the newly supported languages include Afrikaans, Akan, Hausa, Kinyarwanda, Kiswahili, Sesotho, Setswana, Wolof, Yorùbá, and isiZulu. Google...... https://web.facebook.com/AddisstandardEng/posts/pfbid0ZJge8GLSFrAuxUkYUJm28Q53sUEEFUKEM9bXhKBFhuZPueaGkzDN6p2vv5Bv1J2Bl