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

Резултати

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

Пребарај: #futureofdriving

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

@revheadcrypto · Post #502 · 17.09.2024 г., 15:17

🚗💨Unveiling the Lotus Theory 1: A 1000-HP Marvel!🌟 Get ready to be amazed by the all-carbon supercar that redefines performance! With a compact length of just 4.5 meters, the Theory 1 features a unique door design that lifts up while sliding back. 🚪✨ 🔋Power & Performance: - 1000 HP💥 - 0-100 km/h in just 2.5 seconds⏱️ - Top speed exceeding 320 km/h🚀 - Equipped with a 70 kWh battery for a range of 400 km⚡ - Weighs in at an impressive 1.6 tons⚖️ #LotusTheory1#Supercar#ElectricPerformance#CarEnthusiast#Innovation#FutureOfDriving#LuxuryCars#Auto

Auto Life

@revheadcrypto · Post #453 · 06.09.2024 г., 08:22

🔋✨MG to Launch Electric Car with Solid-State Batteries Ahead of Competitors! The brand's serial models are set to feature these innovative batteries by mid-2025, as announced by SAIC Vice President Yu Jingmin. 🚗⚡️ Preliminary reports suggest that the first model equipped with this cutting-edge technology will be the production version of the recent MG Cyber GTS concept. 🌟 Solid-state batteries offer numerous advantages: reduced size and weight, increased energy density, longer lifespan across a wider temperature range, and a lower risk of ignition. 🔒🔥 #MG#ElectricCars#SolidStateBatteries#Innovation#CyberGTS#FutureOfDriving#Auto

Auto Life

@revheadcrypto · Post #643 · 19.11.2024 г., 10:12

🚗✨ Introducing the Robo X: The Ultimate Battery Supercar! 🚀💨 Get ready to experience mind-blowing acceleration with a stunning 0-100 km/h in just 1.9 seconds! ⚡️🔥 Built on a lightweight carbon and aluminum monocoque, the Robo X weighs in at just 1850 kg. With an impressive estimated range of 650 km, this supercar is designed for both speed and endurance! 🌍🔋 Want to be among the first to own this revolutionary vehicle? Pre-order now with a deposit of 49,999 yuan (approximately 700,000 rubles)! 💰🛒 Production is set to kick off in 2027, so don't miss your chance to be part of the future of automotive innovation! 🏎️💨 #RoboX#Geely#Baidu#Supercar#ElectricVehicle#FutureOfDriving#Innovation#PreOrderNow#Auto