@borkena · Post #5527 · 11.12.2025 г., 17:14
የግንቦቱ ምርጫ- ዕድል ወይስ ዕዳ? https://shorturl.at/U95SF#Ethiopia#Election#EthiopiaElection
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
Пребарај: #ethiopiaelection
@borkena · Post #5527 · 11.12.2025 г., 17:14
የግንቦቱ ምርጫ- ዕድል ወይስ ዕዳ? https://shorturl.at/U95SF#Ethiopia#Election#EthiopiaElection
@borkena · Post #6174 · 17.04.2026 г., 15:57
በኢትዮጵያ ካለ የኑሮ ውድነት ጋር በተያያዘ የወጣው መረጃ ፤ኢህአፓ በአስር ከተሞች ያቀደው ህዝባዊ ሰልፍ እንደማይቀር ማስታቁ እና ሌሎች ዜናዎች፡፡ https://youtu.be/7egBmPJpLDg?si=eU6qjiJ82Ocmv7d_#Ethiopia#News#EthiopianNews#EthiopiaElection
@ebcnewsnow · Post #53610 · 16.04.2026 г., 10:31
“ይበጀኛል የምለውን ለመምረጥ ጓጉቻለሁ”፦ የ18 ዓመቷ ሰላም ደመቀ ************************** የባህር ዳር ከተማ የ7ኛው አጠቃላይ ምርጫ የመራጮች ምዝገባ እየተከናወነ ሲሆን ነዋሪዎች ወደ ምርጫ ጣቢያዎች በመሄድ በመመዝገብ ላይ ናቸው። ከእነዚህ መራጮች መካከል አንዷ የሆነችው እድሜዋ 18 የሞላት ሰላም ደመቀ ለመጀመሪያ ጊዜ በጠቅላላ ምርጫው ድምፅ ለመስጠት የምርጫ ካርድ ወስዳለች፡፡ ለሰላም ደመቀ ይህ ምርጫ ለመጀመሪያ ጊዜ በሀገር ጉዳይ ላይ ድምፅ የምትሰጥበት የታሪኳ ምዕራፍ በመሆኑ ልዩ ትርጉም የሰጠችው ነው። ዕድሜዋ ለመራጭነት በመድረሱና ለመጀመሪያ ጊዜ የመምረጥ መብቷን የሚያረጋግጥላትን ካርድ በመያዟ ያላትን ደስታ ለኢቲቪ ገልጻለች። ሰላም የያዘችው የምርጫ ካርድ ለእሷ የመምረጥ መብት ብቻ ሳይሆን፣ የነገዋን ኢትዮጵያ በመቅረፅ ሂደት ውስጥ ተሳታፊ የሆነችበት የሉዓላዊነት ጉዞ መጀመሪያ ነው። ዕድሜያቸው ለመምረጥ የደረሱ ዜጎች ሁሉ ካርዳቸውን በወቅቱ በማውጣት ለሀገራቸው የዴሞክራሲ ልምምድ የድርሻቸውን እንዲወጡ ጥሪዋን አስተላልፋለች። በሳሙኤል ወርቅአየሁ Ethiopian Broadcasting Corporation #EBC#BahirDar#EthiopiaElection
Hashtags
@borkena · Post #6175 · 17.04.2026 г., 15:57
Ethiopia’s 2026 Election: A Bloodstained Ballot. Read more. https://borkena.com/2026/04/17/ethiopias-2026-election-a-bloodstained-ballot/#Ethiopia#politics#Ethiopianpolitics#election#EthiopiaElection
@addisstandardeng · Post #21944 · 04.04.2026 г., 14:07
🎬 3 Days. 3 Regions. One Election. As Ethiopia prepares for its 7th General Election in June 2026, Addis Standard brings you three back-to-back electoral profiles examining the regions where the stakes are highest. 📍 Monday - Oromia 📍 Tuesday - Amhara 📍 Wednesday - Tigray From political uncertainty and ongoing conflicts…to unresolved constitutional questions and shifting power dynamics… These regions could shape the direction of Ethiopia’s next political chapter. 📅 Monday. Tuesday. Wednesday, April 6, 7, and 8 2026. Don’t miss Addis Standard’s Special Election Dispatch in English, Amharic and Afaan Oromoo. #Ethiopia#EthiopiaElection#AddisStandard#Oromia#Amhara#Tigray#Election2026
@addisstandardeng · Post #21936 · 03.04.2026 г., 16:30
#Premiering_now: The Standard Signal | Ep.15: Ethiopia Under Pressure: Fuel Crisis, Global & Regional Instability, a Fragile Election | Jawar Mohammed Click here to watch: https://www.youtube.com/watch?v=HexAbPk8Dkw Ethiopia is facing mounting pressures. In Episode 15 of The Standard Signal, host Tsedale Lamma brings Jawar Mohammed to discuss the deepening fuel shortage and corruption concerns in Ethiopia, the looming fertilizer crisis and its implications for food security, and the impact of Middle East war on Ethiopia’s economy and stability. #AddisStandard#TheStandardSignal#Ethiopia#JawarMohammed#EthiopiaPolitics#Corruption#FuelCrisis#HornOfAfrica#Tigray#Amhara#Oromia#EthiopiaElection#AfricaPolitics#EthiopiaNews#AfricanPolitics#Geopolitics
@addisstandardeng · Post #21935 · 03.04.2026 г., 14:30
#Coming_UP: The Standard Signal | Ep.15: Ethiopia Under Pressure: Fuel Crisis, Global & Regional Instability, a Fragile Election | Jawar Mohammed #TsedaleLemma speaks with #JawarMohammed about the growing challenges facing Ethiopia, from global and regional tensions to domestic instability, corruption and Ethiopia’s fragile election. Premiers at: 7:30 PM EAT tonight. Subscribe to watch: https://www.youtube.com/@AddisStandard #AddisStandard#TheStandardSignal#Ethiopia#JawarMohammed#EthiopiaPolitics#Corruption#FuelCrisis#HornOfAfrica#Tigray#Amhara#Oromia#EthiopiaElection#AfricaPolitics#EthiopiaNews#AfricanPolitics#Geopolitics