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

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

Резултати

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

Пребарај: #hyperliquid

当前筛选 #hyperliquid清除筛选

Lookonchain | ꘜ BTC just broke above $122,000! To avoid liquidation, whale 0x5D2F deposited 6M $USDC into #Hyperliquid. Current position: 1,266.84 $BTC($154M) Liquidation price: $127,780 Loss: $12.5M https://hypurrscan.io/address/0x5D2F4460Ac3514AdA79f5D9838916E508Ab39Bb7

Hashtags

金色财经/币圈快讯7*24小时

@jinsebtc · Post #203599 · 09.05.2026 г., 02:35

某鲸鱼再次向 HyperLiquid 存入 266.8 万枚 USDC,并以 20 倍杠杆做多EWY 和 DRAM 【某鲸鱼再次向 HyperLiquid 存入 266.8 万枚 USDC,并以 20 倍杠杆做多EWY 和 DRAM】金色财经报道,据Onchain Lens监测,鲸鱼地址 “0x3Ed” 再次向 #HyperLiquid 存入 266.8 万枚 $USDC,并以 20 倍杠杆开设了 $EWY 和 $DRAM 仓位。 目前其仍持有 $MU 和 $SNDK 的多头头寸,总价值约 1200 万美元,浮动盈利约 84.8 万美元。 交流群

Hashtags

BullRunners | Channel 📉

@bullrunnerofficials · Post #31064 · 02.02.2026 г., 18:04

A newly created wallet deposited $3.18M $USDC into #HyperLiquid and opened an $ETH long position with 20x leverage. The whale is likely to increase the position or open a new one. @Runlifenick_fx✅

Hashtags

Pro Analysis

@proanalysistrader · Post #28630 · 19.10.2025 г., 15:15

A mysterious whale wallet 0x579f has deposited $2.91M USDC into #Hyperliquid over the last 48 hours — taking massive leveraged bets across three major assets: • Short 232 BTC (~$25M) • Short 5,810 ETH (~$22.7M) • Long 44.79M ENA (~$21.3M) That’s a combined open position of nearly $70M, signaling a strong rotation from majors to ENA. https://hypurrscan.io/address/0x579f4017263b88945d727a927bf1e3d061fee5ff

Hashtags

Pro Analysis

@proanalysistrader · Post #28614 · 05.10.2025 г., 03:55

A whale recently created a new wallet (0xb0a0) and deposited $4 million USDC into #Hyperliquid, signaling a major move to accumulate $HYPE. So far, the wallet has purchased 58,778 $HYPE worth approximately $2.89 million. https://hypurrscan.io/address/0xb0a0f97898682E3c0A83633DF67E67249d6B12fa

Hashtags

Elf Crypto VIP

@elfcryptovip · Post #12281 · 11.11.2025 г., 07:47

As $UNI is trading at ~$10, a whale holding a $UNI long position with 10x leverage currently has a floating profit of $3M on #HyperLiquid. The whale also has long positions on $ETH (25x), $BTC and $SOL with 20x leverage, with floating profit of $9.38M. Overall, the whale is making $31.9M. https://hyperbot.network/trader/0x9263c1bd29aa87a118242f3fbba4517037f8cc7a

Hashtags

Onchain Lens Channel

@OnchainLens · Post #6141 · 06.04.2026 г., 05:07

A newly created wallet "0x01f" deposited 242 $ETH into #HyperLiquid to sell, then opened a 3,286.46 $ETH short position with 20x leverage valued at ~$7M. https://hyperdash.com/address/0x01f135c734b4aae018ebf4e7995c560a38422e50 https://x.com/OnchainLens/status/2041019716492537964 Follow @onchainlens for more onchain updates

Hashtags

Onchain Lens Channel

@OnchainLens · Post #6132 · 04.04.2026 г., 09:23

After 5 months, a whale deposited $1M $USDC into #HyperLiquid and opened a 20,000 $BRENTOIL long position with 20x leverage. Previously, the whale has made over $12.44M. https://hyperbot.network/trader/0x9aB1c356E6Af86361446497FCe954B3CDF940206 https://x.com/OnchainLens/status/2040359551682412700 Follow @onchainlens for more onchain updates

Hashtags

Onchain Lens Channel

@OnchainLens · Post #6112 · 02.04.2026 г., 08:53

A wallet deposited $2.25M $USDC into #HyperLiquid and opened a 2,271.55 $GOLD ($10M) long position with 10x leverage. https://hyperbot.network/trader/0x06a33efba1ea066af486d3d8b89eea896ec1cf69 https://x.com/OnchainLens/status/2036242636579938809 Follow @OnchainLens…

Hashtags

Onchain Lens Channel

@OnchainLens · Post #6110 · 02.04.2026 г., 08:16

Machi deposited another $300K USDC into #HyperLiquid to increase his $ETH (25x) long position. Earlier, Machi partially closed the position at a loss to avoid liquidation. Machi’s loss is now over $31.29M. https://hyperbot.network/trader/0x020ca66c30bec2c4fe3861a94e4db4a498a35872 https://x.com/OnchainLens/status/2039617823027425483 Follow @onchainlens for more onchain updates

Hashtags

Onchain Lens Channel

@OnchainLens · Post #6097 · 01.04.2026 г., 06:47

A newly created wallet deposited $9.6M $USDC into #HyperLiquid and opened a $CL long position with 20x leverage. The position is still increasing. https://hyperbot.network/trader/0x9D32884370875f2960D5CC4b95Be26687d69Aff5 https://x.com/OnchainLens/statu…

Hashtags

123•••10•••1718
ПретходнаСтраница 1 од 18Следна