@BorussiaDortmund · Post #61387 · 03.05.2026 г., 13:46
Man UTD 🆚 Liverpool | Lineups ⏰ 14:30 GMT 🏟️ Old Trafford 📍 Manchester #EPL
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
Пребарај: #epl
@BorussiaDortmund · Post #61387 · 03.05.2026 г., 13:46
Man UTD 🆚 Liverpool | Lineups ⏰ 14:30 GMT 🏟️ Old Trafford 📍 Manchester #EPL
Hashtags
@reinseele1 · Post #321 · 24.11.2024 г., 12:13
Начинаем плей-офф European Pro League Season 21 с победы против Passion UA 😠 Продолжим 25 ноября в 19:00 по МСК против победителя пары NAVI Junior vs Level UP. #Dota2#EPL
@reinseele1 · Post #298 · 15.11.2024 г., 20:43
Спишь? А у нас второй матч группового этапа EPL S21. Подключаемся на самое сладкое 👇 ✨RU | ✨EN #Dota2#EPL
@reinseele1 · Post #288 · 12.11.2024 г., 14:19
Врываемся в групповой этап European Pro League Season 21. Первый противник — Dragon Esports Club. ✨ RU: https://www.twitch.tv/epldota_ru2 ✨ EN: https://www.twitch.tv/epldota_en2 #Dota2#EPL
@tonlines · Post #7241 · 16.05.2025 г., 14:14
Fanton EN: Friday EPL Fantasy Football Insights #EPL#Fanton Fanton EN provides updates for fantasy football fans with matches including Aston Villa against a lower-ranked team and Chelsea hosting Man United. Key players like Ollie Watkins and Enzo Fernández are highlighted for potential fantasy lineups. Participate in the EPL Double Tournament with an entry fee of $9 to secure top spots. Source: link @tonlines
@tonlines · Post #7231 · 15.05.2025 г., 18:16
Fanton EN: Secure Your Spot for the EPL Grand Tournament #EPL#Fanton Fanton EN is offering a promotional opportunity for players to secure tickets to the EPL Grand Tournament with a $2,000 guarantee. By making 7 entries by May 17th at 21:00 UTC, players can receive an additional free lineup and have the chance for more tickets by increasing their entries. Source: link @tonlines
@tonlines · Post #7131 · 09.05.2025 г., 07:58
⚡️Fanton EN: Last Call for EPL Grand Tournament Registration #Fanton#EPL Fanton EN announces the closing of registration for the English Premier League Grand Tournament, with $3,000 guaranteed. Top players in categories such as goalkeepers and defenders are highlighted, encouraging participation from fantasy players. Source: link @tonlines
@tonlines · Post #6734 · 12.04.2025 г., 11:43
Fanton EN: New EPL Round Registration Closing Soon #EPL#Fanton Fanton EN invites participants to join the new EPL round with a $9 entry fee, featuring matches between Brighton vs Leicester, Nottm Forest vs Everton, and Southampton vs Aston Villa. Registration concludes in 2.5 hours. Source: link @tonlines
@tonlines · Post #7649 · 29.11.2025 г., 13:20
Fanton EN: EPL Tournament Begins Soon! #EPL#tournament Fanton EN announces that the EPL tournament with a $300 prize pool is starting in 1.5 hours. Participants can enter for a 9 USDT fee and compete in the 4+1 format. Source: link @tonlines
Hashtags
@tonlines · Post #6787 · 15.04.2025 г., 17:41
⚡️Fanton EN: Exciting Grand Tournament Returns! #Tournament#EPL Fanton EN announces the return of the EPL Grand Tournament with a $5,000 prize pool. The tournament will take place on April 19–20 and offers thrilling competition for participants with a $9 USDT entry fee. Source: link @tonlines
Hashtags
@tonlines · Post #7687 · 02.12.2025 г., 17:35
⚡️Fanton EN: Exciting EPL Midweek Tournament! #EPL#prizes Fanton EN is hosting an exciting English Premier League tournament with a $200 prize pool. Don’t miss the matches from December 2-4, including Newcastle vs Tottenham and Fulham vs Man City. Join now with a $9 entry fee and compete for the prize! Source: link @tonlines
@tonlines · Post #7153 · 10.05.2025 г., 08:11
⚡️Fanton EN: Grand EPL Tournament Kicks Off Soon! #Fanton#USDT#EPL The Fanton EN channel announces the upcoming Grand EPL Tournament offering a prize pool of $3,000. Participants can join by building their teams and competing to win USDT or $FTON with an entry fee of just $11. Source: link @tonlines