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

Резултати

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

Пребарај: #mtgox

当前筛选 #mtgox清除筛选
SpotOnChain | Announcement

@spotonchain · Post #874 · 24.06.2024 г., 09:58

Mt. Gox just announced it will start repaying creditors in $BTC and $BCH in early July 2024. Preparations and compliance measures are complete, but detailed implementation will take some time. Note that Mt. Gox currently holds 141,686 $BTC ($8.67B) across 3 wallets. It seems that the market has already reacted negatively after the news was out, with the $BTC price dropping from $62.8K to $60.8K in only a few minutes. Follow @spotonchain and set alerts for the #MtGox entity via https://platform.spotonchain.ai/en/platform/entity/2182

Hashtags

Сигналы РЦБ Крипто

@usa100cks · Post #25010 · 02.03.2026 г., 07:36

#MtGox#BTC Экс-глава Mt. Gox предложил хардфорк для возврата украденных BTC 2011 года Бывший CEO Mt. Gox предложил рассмотреть возможность хардфорка сети Bitcoin для возврата монет, похищенных в результате взлома 2011 года. Речь идет о примерно 80 000 BTC, которые по текущим ценам оцениваются в около $5,2 млрд. Идея предполагает изменение истории блокчейна с целью признания соответствующих транзакций недействительными. Инициатива уже вызвала критику в сообществе, поскольку подобное вмешательство противоречит принципу неизменяемости блокчейна.

Hashtags

Garantex News Russia

@garantexnews · Post #13848 · 05.12.2024 г., 11:30

💸Биржа Mt. Gox переводит 24 000 BTC после взлета крипты выше $100 000 🟪 Криптовалютная биржа Mt. Gox перевела 24 051 BTC на неизвестный адрес после того, как цена биткоина превысила $100 000. 🟪 По данным Arkham Intelligence, транзакция состоялась утром 5 декабря. Это первая операция биржи с 12 ноября. 🟪 Аналитики предполагают, что перевод может предшествовать новым выплатам кредиторам, пострадавшим от взлома платформы. Ранее подобные транзакции совершались перед выплатами компенсаций. 🟪 Перемещение таких объемов криптовалюты может оказать давление на рынок. Если биткоины будут проданы на биржах, это может привести к снижению их стоимости. #MtGox#Биткоин#BTC АкадемияGarantex|Garantex Announcements|ВКонтакте|YouTube

SpotOnChain | Announcement

@spotonchain · Post #1333 · 18.11.2025 г., 08:30

⚠️ Mt. Gox wakes up: 10,608 $BTC (~$954M) moved today after 8 months offline. 🚨 • 185.5 $BTC ($16.7M) sent to #Kraken ~12 mins ago • 10,422 $BTC ($937M) moved to a new wallet—likely its own cold wallet—potentially to be distributed to exchanges in smaller batches later (~4 hrs ago) Follow @spotonchain to track the next #MtGox moves with us now! https://x.com/spotonchain/status/1990698974127517780

SpotOnChain | Announcement

@spotonchain · Post #1144 · 25.03.2025 г., 00:51

[ATTENTION] Mt. Gox just moved 11,501.4 $BTC ($1B) again! This includes 10,608 $BTC ($929.7M) sent to a new wallet and 893.4 $BTC ($78.3M) to a warm wallet. Notably, after Mt. Gox’s previous transfer, 332 $BTC ($25.5M) was deposited into #Bitstamp. It is likely the 893.4 $BTC sent to the warm wallet will be moved out shortly too! Follow @spotonchain and track #MtGox live now: https://x.com/spotonchain/status/1904335124675833869

SpotOnChain | Announcement

@spotonchain · Post #1128 · 11.03.2025 г., 00:57

Mt. Gox just moved 11,834 $BTC ($910M) again! This includes 11,502 $BTC ($885M) to a new wallet and 332 $BTC ($25.5M) to a warm wallet. Notably, after Mt. Gox’s last major $BTC transfer 5 days ago, 166.5 $BTC was sent to #BitGo, likely for creditor repayment. The above 332 $BTC ($25.5M) may be moved out soon. Follow @spotonchain and track #MtGox live with us now: https://x.com/spotonchain/status/1899263219065393536

Hashtags

SpotOnChain | Announcement

@spotonchain · Post #934 · 31.07.2024 г., 00:32

🔴 Mt. Gox moved 47,228 $BTC ($3.15B) to 3 new wallets in the past 2 hours! Based on past activities, Mt. Gox may soon move parts of these $BTC to CEX to repay creditors. Since July 5, 2024, Mt. Gox has transferred a total of 61,559 $BTC ($3.88B) to #Bitstamp, #SBIVC and #Kraken for creditor repayments. Follow @spotonchain and set alerts for the latest updates about #MtGox now: https://platform.spotonchain.ai/en/entity/2182

SpotOnChain | Announcement

@spotonchain · Post #922 · 23.07.2024 г., 07:03

🚨🚨 BREAKING: Mt. Gox moved 2,239 $BTC ($149M) to #Bitstamp 30 minutes ago! To repay creditors this July as previously announced, Mt. Gox has so far: ➡️ Deposited 1,545 $BTC ($84.87M) to #Bitbank on Jul 5 ➡️ Moved 48,641 $BTC ($3.27B) wallet 3JQie, possibly a #Kraken deposit, on Jul 16 and held them there. ➡️ Moved 2,239 $BTC ($149M) to #Bitstamp on Jul 23 just now. Follow @spotonchain and set alerts for #MtGox now via https://platform.spotonchain.ai/en/platform/entity/2182

Venture Village Wall 🦄

@venturevillagewall · Post #4318 · 06.03.2025 г., 04:00

Bitcoin Hits $92,000; Crypto News Roundup - BioNexus Gene Lab adopts Ethereum treasury strategy, first Nasdaq firm to do so. Read more - Argentina freezes $100M in crypto linked to LIBRA sale, seeks transaction records. Read more - Trump's WLFI invests $336M in various tokens, faces $88M loss. Read more - Ethereum Devconnect set for Buenos Aires, Nov 17-22, 2025. Read more - $50M in USDC minted at USDC Treasury. Details - Mt. Gox transfers over $1B in Bitcoin to an unmarked address. Read more #Bitcoin#Crypto#Ethereum#USDC#MtGox#Argentina#BioNexus#WLFI#Devconnect#Tokens#CryptoAssets#Treasury#ETH#Investments#CryptoNews#Finance#Blockchain#Tech#NASDAQ#Loss

Venture Village Wall 🦄

@venturevillagewall · Post #4358 · 11.03.2025 г., 01:00

Whale Moves ETH, Mt. Gox Transfers BTC A major whale sold 25,800 ETH to avert liquidation, incurring a $31.75 million loss after purchasing at an average price of $3,084 in July 2024. Meanwhile, Mt. Gox transferred 11,501 BTC (approx. $905 million) to a new address and 332 BTC (approx. $26.13 million) to its warm wallet. New markets for minting crvUSD with weETH, cbBTC, and LBTC as collateral launched. #ETH#BTC#MtGox#DeFi#Crypto#Whale#Liquidation#trading#MarketNews#CurveFinance#blockchain#finance#investment#cryptocurrency#ethusd#bitcoinnews#assets#collateral#cryptoexchange#trends