@PixelExperience · Post #8925 · 16.08.2023 г., 18:51
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by x0x00044 ℹ️ Version: 13 📆 Build date: August 15, 2023 23:46 📂 File size: 1.43 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #83 · 11 мај
У строки в Python есть два очень похожих метода. На столько похожих что кажется они делают одно и тоже. Это метод isdigit() и isnumeric() Давайте посмотрим зачем нам два одинаковых метода? И так ли они одинаковы? Очевидно что isdigit() говорит нам, состоит ли строка только из чисел 0-9 >>> '12'.isdigit() True >>> '12x'.isdigit() False >>> '-12'.isdigit() False >>> '12.5'.isdigit() False Можно предположить что isnumeric() делает более глубокий анализ и распознаёт в строке float или отрицательное число. >>> '15'.isnumeric() True >>> '-15'.isnumeric() False >>> '15.2'.isnumeric() False Нет, всё так же как и с другим методом. В чем же тогда разница? Для начала посмотрим следующие примеры: >>> '5'.isdigit(), '5'.isnumeric() # Обычная цифра 5 # True, True >>> '꧕'.isdigit(), '꧕'.isnumeric() # Яванская 5 # True, True >>> '෩'.isdigit(), '෩'.isnumeric() # Синхала 3 # True, True >>> '৩'.isdigit(), '৩'.isnumeric() # Бенгальская 3 # True, True >>> '༣'.isdigit(), '༣'.isnumeric() # Тибетская 3 # True, True >>> '³'.isdigit(), '³'.isnumeric() # 3 верхний индекс (степень) # True, True >>> '𝟝'.isdigit(), '𝟝'.isnumeric() # Математическая двойная 5 # True, True >>> '๔'.isdigit(), '๔'.isnumeric() # Тайская 4 # True, True >>> '➑'.isdigit(), '➑'.isnumeric() # 8 в круге # True, True А теперь примеры в которых, по мнению Python, результаты не равны >>> '¾'.isdigit(), '¾'.isnumeric() # дробь три четверти # False, True >>> '⅕'.isdigit(), '⅕'.isnumeric() # дробь одна пятая # False, True >>> '𒐶'.isdigit(), '𒐶'.isnumeric() # клинопись 3 # False, True >>> '三'.isdigit(), '三'.isnumeric() # 3 из унифицированной идеограммы # False, True >>> '⑩'.isdigit(), '⑩'.isnumeric() # цифра 10 в круге # False, True >>> 'Ⅳ'.isdigit(), 'Ⅳ'.isnumeric() # Римская 4 # False, True >>> '𑇪'.isdigit(), '𑇪'.isnumeric() # Сенегальская архаическая 10 # False, True >>> '𐌢'.isdigit(), '𐌢'.isnumeric() # Этрусская цифра 10 # False, True >>> 'ↂ'.isdigit(), 'ↂ'.isnumeric() # Римская цифра 10000 # False, True >>> '〇'.isdigit(), '〇'.isnumeric() # Символ ККЯ ноль # False, True Получается, что isdigit() говорит нам, является ли символ десятичной цифрой или спецсимволом, имеющим цифирное значение после преобразования. В свою очередь isnumeric() включает все дополнительные символы юникода которые имеют отношения к числовым и цифровым представлениям. Ну и пара примеров в которых в обоих случаях символ не является числом, это эмодзи. >>> '🕙'.isdigit(), '🕙'.isnumeric() # эмодзи 10 часов # False, False >>> '7️⃣'.isdigit(), '7️⃣'.isnumeric() # эмодзи 7 # False, False Также есть еще один дополнительный и весьма полезный метод isdecimal(). Он нам сообщает, можно ли из указанного символа сделать простую десятичную цифру. То есть сработает ли метод int(x) >>> '෩'.isdecimal(), int('෩') # Синхала 3 # True, 3 >>> '➑'.isdecimal(), int('➑') # 8 в круге # False, ValueError Какие выводы? 🔸 При определении цифры в строке isdigit() подходит лучше чем isnumeric(), но оба не гарантируют успешную конвертацию в int 🔸 Для однозначного определения возможности преобразования строки в int лучше подходит метод isdecimal() 🔸 Для однозначного определения символов 0...9 лучше использовать regex Полный список символов юникода которые определяются как numeric #basic
Hashtags
Пребарај: #spacewar
@PixelExperience · Post #8925 · 16.08.2023 г., 18:51
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by x0x00044 ℹ️ Version: 13 📆 Build date: August 15, 2023 23:46 📂 File size: 1.43 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@PixelExperience · Post #8924 · 16.08.2023 г., 18:51
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by x0x00044 ℹ️ Version: 13 (Plus edition) 📆 Build date: August 16, 2023 00:53 📂 File size: 1.44 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@PixelExperience · Post #8473 · 05.05.2023 г., 13:56
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 📆 Build date: May 5, 2023 10:07 📂 File size: 1.60 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@PixelExperience · Post #8472 · 05.05.2023 г., 13:56
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 (Plus edition) 📆 Build date: May 5, 2023 10:36 📂 File size: 1.61 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #8364 · 26.04.2023 г., 01:17
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 (Plus edition) 📆 Build date: April 25, 2023 23:34 📂 File size: 1.61 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #8363 · 26.04.2023 г., 01:17
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 📆 Build date: April 25, 2023 23:35 📂 File size: 1.60 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #8176 · 02.04.2023 г., 12:09
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 (Plus edition) 📆 Build date: April 1, 2023 21:55 📂 File size: 1.61 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #8175 · 02.04.2023 г., 12:07
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 📆 Build date: April 1, 2023 21:19 📂 File size: 1.60 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #7833 · 20.01.2023 г., 13:35
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 (Plus edition) 📆 Build date: January 20, 2023 12:02 📂 File size: 1.81 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #7831 · 20.01.2023 г., 12:48
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 📆 Build date: January 20, 2023 10:39 📂 File size: 1.80 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@pixelexperience · Post #7756 · 09.01.2023 г., 15:46
➡️New build available for Nothing Phone (1) (Spacewar) 👤 by hiper25 ℹ️ Version: 13 📆 Build date: January 8, 2023 21:57 📂 File size: 1.80 GB ⬇️ Download now #Spacewar#pixelexperience
Hashtags
@american_observer · Post #4864 · 15.01.2026 г., 19:11
📰AI, Robots, and Space Beepers: IDF’s New War Fantasy The IDF is doubling down on sci-fi warfare. Under Lt.-Gen. Eyal Zamir’s new five-year plan, Israel’s military is betting its future on AI, robots, and a “beeper” defense straight out of a cyberpunk thriller. Forget boots on the ground—soon, it might be drones, lasers, and implants that do the talking. “The future of defense is not just about people, but about machines and data,” said Maj.-Gen. Hidai Zilberman, overseeing the plan dubbed “Hoshen”—a biblical nod to the priestly breastplate, now repurposed as a code name for high-tech warfare. Behind the buzzwords: half a billion shekels will pour into tech upgrades, from autonomous systems to space-based defense. The IDF wants robots on every battlefield, AI managing operations, and a “beeper” network ready to zap enemies before they cross the border. This isn’t just about deterrence; it’s about turning the next war into a video game where Israel hits “play.” But here’s the twist: all this depends on stable budgets, no surprise wars, and continued US aid. If any of those fall apart, the whole plan could become a very expensive PowerPoint. Who’s really winning? Tech contractors, politicians selling “innovation,” and generals who now sound like startup CEOs. Meanwhile, soldiers are promised more resilience and resources—but after two years of war, many wonder if this is just another way to avoid fixing the human cost. Is Israel preparing for the next war, or just building the ultimate military startup? #AI#IDF#Robots#SpaceWar#Beepers#MilitaryTech 📱American Оbserver - Stay up to date on all important events 🇺🇸