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

Резултати

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

Пребарај: #autostocks

当前筛选 #autostocks清除筛选
Crypto M - Crypto News

@CryptoM · Post #64523 · 09.04.2026 г., 06:03

🚀 STOCKS | Hong Kong Auto Stocks Decline in Afternoon Trading Hong Kong's auto stocks experienced a downturn in afternoon trading. According to Jin10, XPeng Inc. (09868.HK) saw a decline of over 5%, while BYD Company Limited (01211.HK) dropped more than 4%. Other companies such as Seres Group (09927.HK) and Li Auto Inc. (02015.HK) also followed the downward trend. #HongKong#AutoStocks#XPeng#BYD#SeresGroup#LiAuto#StockMarket

Crypto M - Crypto News

@CryptoM · Post #64479 · 09.04.2026 г., 02:07

🚀 STOCKS | Hong Kong Auto Stocks Surge with Geely and Chery Leading Gains Hong Kong's automotive stocks have shown significant strength, with notable gains observed in several key companies. According to Jin10, Geely Automobile Holdings Limited (00175.HK) and Chery Automobile Co., Ltd. (09973.HK) both experienced increases of over 4%. Additionally, NIO Inc. - SW (09866.HK) saw a rise of more than 3%, while Leapmotor (09863.HK) also followed the upward trend. This surge reflects a positive sentiment in the Hong Kong auto market, driven by investor confidence and market dynamics. #HongKong#AutoStocks#Geely#Chery#NIO#Leapmotor#Automotive#StockMarket#InvestorSentiment