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

Резултати

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

Пребарај: #ericsson

当前筛选 #ericsson清除筛选
Addis Standard

@addisstandardeng · Post #21657 · 09.03.2026 г., 14:45

News: #Ethio_Telecom announces strategic network expansion agreements with #Ericsson, #ZTE, Huawei, Nokia at Barcelona Ethio Telecom announced that it has reached a series of strategic network expansion and modernization agreements with global technology partners Ericsson, ZTE, #Huawei, and #Nokia during the Mobile World Congress 2026 held in #Barcelona, #Spain. The telecom provider said its CEO #Frehiwot Tamru, together with a senior management delegation, held high-level strategic discussions with executives of the company’s key international technology partners and network equipment suppliers on the sidelines of the global industry event. As part of the engagements, Ethio Telecom and ZTE finalized a major network expansion and modernization agreement covering 647 network sites, including 115 rural sites. The company said the initiative will strengthen nationwide connectivity and expand digital inclusion across the country. Separately, Ethio Telecom ….. Read more: https://addisstandard.com/?p=55681