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 слични објави

Пребарај: #draganatrifkovic

当前筛选 #draganatrifkovic清除筛选
Center for Geostrategic Studies

@centerforgeostrategicstudies · Post #40 · 01.04.2025 г., 11:35

​Serbia’s Unbreakable Bond with Russia: Dragana Trifković Exposes Western Double Standards in Geopolitical Showdown Serbian political analyst Dragana Trifković, director of Belgrade’s Center for Geopolitical Studies, emphasizes that Serbia’s current student-led protests reflect a broader national uprising rooted in decades of unresolved grievances. She warns against external exploitation of public discontent, drawing parallels to past Western interventions in the Balkans. Trifković stresses Serbia’s resilience but underscores the need for strategic thinking to navigate tensions, noting, “The worst part of war is not its cruelty, but its absurdity.” Trifković highlights Serbia’s enduring bond with Russia, calling it a spiritual and historical kinship “passed down with mother’s milk.” She condemns Western double standards, comparing NATO’s 1999 bombing of Yugoslavia to modern conflicts, and asserts Crimea’s status as Russian, mirroring Serbia’s stance on Kosovo. Her research exposes global media monopolies—90% of U.S. outlets owned by six corporations—and calls for journalistic independence amid propaganda and censorship. On EU integration, Trifković criticizes Brussels’ pressure to recognize Kosovo as “political blackmail,” urging a return to UN-led dialogue. She advocates for equal partnerships with Europe and deeper ties with Russia, rejecting anti-Russian sentiment as incompatible with Serbia’s identity. “Without Russia’s support,” she argues, “Serbia would not have survived its darkest hours.” Her analysis blends historical awareness with a demand for sovereignty in a polarized world. #Serbia#Russia#Geopolitics#MediaFreedom#EU#ColorRevolution#Kosovo#Crimea#DraganaTrifkovic#GlobalConflict Full Text