@TestFlightX · Post #35138 · 07.04.2026 г., 17:12
#Steam Mobile https://testflight.apple.com/join/8BOPXsGz
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
Пребарај: #steam
@TestFlightX · Post #35138 · 07.04.2026 г., 17:12
#Steam Mobile https://testflight.apple.com/join/8BOPXsGz
Hashtags
@ParadoxW98 · Post #24067 · 12.02.2025 г., 22:47
Steam发布公告:禁止在游戏中植入干扰玩家体验的广告 开发者不应该使用付费广告作为游戏内的业务模式,例如要求玩家观看广告或以其他方式参与广告才能玩游戏,或是用广告来限制游戏内容。 🗒 标签: #Steam
Hashtags
@linuxgram · Post #18771 · 13.05.2026 г., 09:59
📰 Unreal Engine 5.8 adds experimental Steam Frame support, Qualcomm give the Steam Frame a dedicated page Valve's new VR kit the Steam Frame appears to be inching closer to a release announcement - here's two more fun bits of news on it for you.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/05/unreal-engine-5-8-adds-experimental-steam-frame-support-qualcomm-give-the-steam-frame-a-dedicated-page/ #steam
Hashtags
@linuxgram · Post #18567 · 25.04.2026 г., 16:12
📰 Your Gen 5 SSD is probably throttling right now, and you have no idea You paid a premium for 14,000 MB/s speeds, but during a large Steam download or 4K video export, it feels like your PC is struggling to keep up and overall just comes across quite mushy. Unlike a CPU, which might trigger a loud fan spike, an SSD suffers in silence, making it hard for you to identify when it is actually occurring. 🔗 Source: https://www.xda-developers.com/your-pcie-50-ssd-might-be-throttling-without-you-knowing/ #steam
Hashtags
@linuxgram · Post #18465 · 16.04.2026 г., 22:16
📰 Proton 11.0 Beta Released With More Games Playable On Steam Play Valve and CodeWeavers have just released Proton 11.0 Beta as their first beta milestone for this software that powers Steam Play now rebased against upstream Wine 11.0... 🔗 Source: https://www.phoronix.com/news/Proton-11.0-Beta #steam
Hashtags
@linuxgram · Post #18297 · 03.04.2026 г., 13:59
📰 Valve recently confirmed Steam game pricing updates across different regions At the end of March, Valve issued an announcement to game developers on Steam about changes to how games get priced across different regions.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/04/valve-recently-confirmed-steam-game-pricing-updates-across-different-regions/ #steam
Hashtags
@linuxgram · Post #18285 · 02.04.2026 г., 15:05
📰 SteamOS 3.8 just dramatically improved a lot of handhelds except the Steam Deck itself The Steam Deck just saw one of its biggest updates enter the preview phase, and if you're on the Preview update channel, then chances are you've already updated it. After such a major update, you might realize that not much has changed, though. SteamOS 3.8 is, by all accounts, one of Valve's most important updates yet. It expands compatibility, improves performance, and lays the groundwork for something much bigger than a handheld. 🔗 Source: https://www.xda-developers.com/steamos-38-dramatically-improves-many-gaming-handhelds-except-steam-deck/ #steam
Hashtags
@linuxgram · Post #18119 · 20.03.2026 г., 07:36
📰SteamOS 3.8.0 is finally making the Steam Machine a reality The first glimpse of the Steam Machine's release date is on the horizon. 🔗 Source: https://www.xda-developers.com/steamos-380-is-finally-making-the-steam-machine-a-reality/ #steam
Hashtags
@linuxgram · Post #18057 · 13.03.2026 г., 23:43
📰 New Steam Release Fixes Proton Games Wrongly Flagged as Unplayable Also includes opt-in frame rate telemetry, hardware-tagged reviews, and several quality-of-life improvements. 🔗 Source: https://feed.itsfoss.com/link/24361/17298791/steam-client-march-2026-release #steam
Hashtags
@linuxgram · Post #17987 · 05.03.2026 г., 22:17
📰 Theme park building game Parkitect gets its first ever Steam Free Weekend Parkitect is an absolute gem and if you've not played this theme park builder before - well, now is your best chance because it's free for a while.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/03/theme-park-building-game-parkitect-gets-its-first-ever-steam-free-weekend/ #steam
Hashtags
@linuxgram · Post #17846 · 20.02.2026 г., 12:19
📰 Steam Deck now out of stock in Europe in addition to USA, Canada and Asia Unfortunately the stock availability of the Steam Deck has only worsened recently, with Europe now appearing to be completely out of stock.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/02/steam-deck-now-out-of-stock-in-europe-in-addition-to-usa-canada-and-asia/ #steam
Hashtags
@linuxgram · Post #17810 · 17.02.2026 г., 16:02
📰Valve confirm Steam Deck stock issues due to "memory and storage shortages" We reported recently how the Steam Deck was completely out of stock in the USA, Canada and Asia and now Valve have put up a short statement on it.Read the full article on GamingOnLinux. 🔗 Source: https://www.gamingonlinux.com/2026/02/valve-confirm-steam-deck-stock-issues-due-to-memory-and-storage-shortages/ #steam
Hashtags