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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #84 · 13 мај

В продолжение прошлого поста про цифры в мире строк. Почему методы isdigit() и isnumeric() не определяют в строке float и отрицательные значения? Дело в том, что эти методы работают с ЦИФРАМИ, то есть с единичным символом. А строка "-2" или "3.4" это уже ЧИСЛО. То есть не символ а значение, записанное несколькими символами. Все озвученные методы проходятся по каждому символу строки и проверяют их индивидуально. В юникоде есть символы цифр с точками "🄀⒈⒉⒊⒋⒌⒍⒎⒏⒐" Каждая из них это ОДИН СИМВОЛ, поэтому он будет считаться цифрой >>> '⒌'.isdigit(), '⒌'.isnumeric() True, True Но когда мы пишем это выражение в два символа ( 5+точка), то это не работает. >>> '5.'.isdigit(), '5.'.isnumeric() False, False А еще есть такие символы >>> '⑴⑵⑶⑷⑸'.isdigit() True >>> '🄁🄂🄃'.isdigit() True Но они не преобразуются в десятичные цифры >>> '⒈'.isdecimal() False >>> '🄃'.isdecimal() False >>> '⑶'.isdecimal() False #basic

Hashtags

Резултати

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

Пребарај: #goodwoodfos

当前筛选 #goodwoodfos清除筛选
Auto Life

@revheadcrypto · Post #71 · 10.07.2024 г., 05:53

Subaru unveils Project Midnight, the fastest WRX in history . 🔥 With a 2-liter racing flat-four engine boosted to 670 hp and 680 Nm of torque, this beast revs up to an impressive 9500 rpm . 🚗💨 Weighing only 1120 kg thanks to a carbon fiber body, it sheds a whopping 453 kg for lightning-fast performance . ⚡️ And of course, it's equipped with all-wheel drive for that perfect grip! Don't miss the live debut at the Goodwood Festival of Speed 🏁 #Subaru#ProjectMidnight#WRX#GoodwoodFoS#Auto🏎💥

Auto Life

@revheadcrypto · Post #52 · 06.07.2024 г., 12:18

📸Exciting news from the automotive world! The first electric MINI JCW E will be revealed on 11 July at the 'Festival of Speed' in Goodwood. 🤫 Stay tuned for more details on the powertrain, although with options like a 184bhp motor with a 40.7kWh battery and a 218bhp motor with a 54.2kWh battery in the electric MINI Cooper SE, we can expect the JCW version to pack even more power. 📆 While the MINI JCW E PROtotype will be showcased in action at the event, the full details will be unveiled later this year. MINI also hints that the JCW lineup will feature both electric and gasoline models. #ElectricVehicles#MINIJCW#GoodwoodFOS#AutomotiveInnovation#MINICooperSE#FutureOfMobility#Auto