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

Резултати

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

Пребарај: #chainlink

当前筛选 #chainlink清除筛选
Michaël Van de Poppe Official

@michaelvandepoppeanalyst · Post #4892 · 04.10.2024 г., 13:26

#Chainlink is still consolidating above the crucial resistance and flipping that for support. I think anything between $9-11 is an interesting one to buy into. I mentioned it a few times, but it remains to be an opportunity of a lifetime.

Hashtags

Michaël Van de Poppe Official

@michaelvandepoppeanalyst · Post #3607 · 29.05.2024 г., 09:26

I'd like #Chainlink to hold above $16 and then the next resistance zone is $21. Higher low (on the weekly timeframe) established and $LINK is likely continuing to $25-30 in the coming months. https://x.com/CryptoMichNL/status/1795736335610941605?t=SJbHK_ah54rvjCfW9znPmg&s=19

Hashtags

CRYPTO SIGNALS FREE

@crypto_vip_signals_free · Post #1459 · 09.12.2022 г., 04:43

The community allotment of the #Chainlink Staking v0.1 pool has been filled! 22,500,000 Link has been staked so far for 4.75% staking rewards. @Cryptomathh

Hashtags

SpotOnChain | Announcement

@spotonchain · Post #657 · 19.01.2024 г., 02:59

Three wallets (one whale) spent 8.195M $USDC to buy 601,949 $LINK at $14.81 on average (the local bottom) between 5 and 4 hours ago. Notably, these three wallets were newly created and received their funding stablecoins for the purchases from 2 other wallets that, on the other hand, had been dormant for over a year! For more updates on #Chainlink ($LINK), follow @spotonchain and turn on your 🔔 at: https://platform.spotonchain.ai/en/platform/token?name=LINK

Hashtags

Onchain Lens Channel

@OnchainLens · Post #4694 · 20.12.2025 г., 00:05

The #Chainlink non-circulating supply wallet unlocked 11.25M $LINK worth $14.19M. Of which 9.23M $LINK ($116.37M) deposited into #Binance and sent 2.02M $LINK (25.14M) into a Multisig wallet, after 2 months. https://etherscan.io/advanced-filter?fadd=&tadd=0x9B1c1752B6B6eAF62a8c491A8681B32C1F7ecDE9 https://x.com/OnchainLens/status/2002168360088580161 Follow @onchainlens for more onchain updates

SpotOnChain | Announcement

@spotonchain · Post #1311 · 20.10.2025 г., 12:22

Whale “0xbBF” withdrew 597,957 $LINK ($11M) from #Binance ~6 hours ago amid today’s 12% price surge. Over the past 2 days, this whale has accumulated 1.343M $LINK at an average price of $17.46 (est. cost: $23.45M, now worth $25.47M). Unrealized profit stands at $2M (+8.5%). Follow @spotonchain for more #Chainlink updates. https://x.com/spotonchain/status/1980248004251840849

SpotOnChain | Announcement

@spotonchain · Post #870 · 21.06.2024 г., 23:53

21M $LINK ($295M) was unlocked from #Chainlink Noncirculating supply contracts ~3hrs ago, including: • 18.25M $LINK ($264M) to #Binance • 2.25M $LINK ($31.3M) to Multisig 0xD50f Notably: - Chainlink has unlocked 127M $LINK and sent 107.7M $LINK to Binance at ~$9.89 since Aug 2022. - There are 391.5M $LINK ($5.4B) left across 24 contracts. - $LINK price appears generally well-maintained post-unlocks! Follow @spotonchain now and turn your 🔔 at https://platform.spotonchain.ai/en/platform/entity/439

SpotOnChain | Announcement

@spotonchain · Post #690 · 02.02.2024 г., 23:41

19M $LINK ($341M) was unlocked from 2 Chainlink: Noncirculating supply contracts ~2hrs ago, of which: • 15.95M $LINK ($287M) deposited to #Binance • 3.05M $LINK ($54.3M) moved to Multisig 0xD50f Since Aug 2022, #Chainlink has unlocked 106M $LINK, and then moved 88.95M $LINK to Binance at $9.06 on avg ($805M). Currently, there are still 412.5M $LINK ($7.35B) left across these 24 contracts. $LINK surged ~25% (7D). The price appears to slightly dip in the most recent 2 unlocks, despite previously being well-maintained. Follow @spotonchain now and turn your 🔔 at https://platform.spotonchain.ai/en/platform/entity/439

TONlines – News

@tonlines · Post #7600 · 24.11.2025 г., 12:59

⚡️Toncoin: Major Updates in October 2025 Ecosystem #TON#Telegram#Chainlink Toncoin reveals significant developments, including the launch of COCOON AI, tokenized U.S. stocks in Telegram Wallet, and Chainlink adopting TON as a cross-chain standard. The ecosystem also sees Lamborghini entering the digital collectibles space and significant growth in DeFi and NFT markets. Source: link @tonlines

Pro Analysis

@proanalysistrader · Post #27767 · 22.07.2024 г., 18:11

#LINK/USDT analysis - #ChainLink is anticipated to exhibit a bullish movement shortly. A swift scalp could be strategized towards the previous swing high. TF : 5min Entry : $14.15 Target : $14.30 SL : $14.06

Garantex News Russia

@garantexnews · Post #13761 · 28.11.2024 г., 10:45

🚀LINK и SUI стали самыми популярными альтами в соцсетях ▪️ Команда Santiment составила рейтинг самых обсуждаемых альткоинов в соцсетях. В список вошли криптовалюты с капитализацией более $500 млн, и первое место занял ChainLink (LINK). ▪️ Пока биткоин (BTC) пытается приблизиться к $100 000, пользователи сосредоточены на обсуждении альтов, которые показали значительный рост за неделю. Например, LINK подорожал на 27,5%. ▪️ Среди других популярных альтов в фазе роста выделяются SUI, TON, AVAX, DYDX, EOS, POPCAT, GNO и Bitcoin Gold. Их перспективы активно анализируются в соцсетях. ▪️ Аналитики отмечают, что повышенное внимание к криптовалютам часто сигнализирует о достижении локального пика, за которым может последовать снижение стоимости. ▪️ В то же время биткоин демонстрирует рост, поскольку его пока обходят вниманием в соцсетях. Если в ближайшие 24 часа пользователи не переключат внимание на BTC, он сохранит шансы на прорыв к $100 000. #ChainLink#SUI#Криптовалюты

ПретходнаСтраница 1 од 3Следна