TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #273 · 26 јул.

В стандартном модуле random есть две очень похожие функции random.randint() random.randrange() Обе возвращают случайное значение из указанного диапазона >>> random.randint(10, 20) 12 >>> random.randrange(10, 20) 17 В чем же отличие? Дело в том что у randrange() есть третий параметр step. randint() действительно возвращает случайное число из указанного диапазона. randrange() на первый взгляд делает тоже самое если передать также два параметра. Но есть указать еще и step то наш диапазон усложняется, то есть в него попадёт не полный ряд значений. Например, я хочу получить случайное значение из диапазона но только чётное число. Тогда достаточно сделать так: >>> randrange(10, 20, 2) 16 Таким образом получается что randint это частный случай randrange без указания параметра step. Еще одно важное отличие в том, что randint() включает в диапазон второе значение а randrange() нет. То есть выражение randrange(10, 20) никогда не вернёт 20, а randint(10, 20) вернёт. #tricks#basic

Резултати

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

Пребарај: #gonder

当前筛选 #gonder清除筛选
Borkena

@borkena · Post #5953 · 07.03.2026 г., 19:44

በጎንደር የሀይማኖት አባቱ ተገደሉ። በአማራ ክልል፣ በጎንደር ከተማ፣ የጃሚዓል ከቢር መስጅድ ኢማም ኡስታዝ ሙሐመድ ዘይኑ ትናንት አርብ፣ የካቲት 27 ቀን 2018 ዓ.ም ከሰላት ሲመለሱ ምሽት 1:00 ጎንደር ከተማ መሐል በተተኮሰባቸው ጥይት ተገድለዋል ተብሏል። በወቅቱ አብረዋቸው በነበሩ ሌሎች 11 ሰዎች ላይ ደግሞ ድብደባ እንደተፈፀመባቸው እና ንብረታቸው እንደተዘረፈ ተገልጿል ። አካባቢው ከቅርብ ጊዜያት ወዲህ ከፍተኛ እገታና ዝርፊያ የሚፈጸምበት ሁኗል ተብሏል። ለኡስታዝ ሙሀመድ ዘይኑ ግዲያ ጥቃቱ በማን እንደተፈፀመ አልተገለፀም። ለጥቃቱ እስካሁን ሀላፊነት የወሰደ አካልም የለም። #Ethiopia#Amhara#Gonder#ethiopiannews#ዜና

Addis Standard

@addisstandardeng · Post #21865 · 27.03.2026 г., 15:38

#In_Depth_Analysis: The #Hormuz Entanglement: Why #Ethiopia’s fuel crisis is a perfect storm of #war, #graft, and #reform While the immediate catalyst appears to be the high-stakes military escalation between the U.S., Israel, and Iran, a deeper look reveals that Ethiopia’s fuel misery is a complex entanglement. It is a “perfect storm” where geopolitical vulnerability, a domestic system rotting from within, and a painful macroeconomic experiment have collided to leave 120 million people running on empty. Until the govt can clean its own house, root out the “senior decision-makers” profiting from the black market, and navigate the treacherous waters of Middle Eastern diplomacy, the accounts emerging from #Gonder to #Jimma to #Ambo, and from #Hawassa to #Bishoftu and #Mekelle, point to an Ethiopia that will remain running on empty. It will be a country “stalled at the intersection of a distant war it cannot control and a local crisis of governance it has yet to master”... https://addisstandard.com/?p=56099