@tokenpocket_channel · Post #1020 · 17.12.2023 г., 00:33
⭐️ What’s your favorite #Inscriptions today? 【Details】https://twitter.com/TokenPocket_TP/status/1736182165346586821 【Powered By】Crypto Box
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
Пребарај: #inscriptions
@tokenpocket_channel · Post #1020 · 17.12.2023 г., 00:33
⭐️ What’s your favorite #Inscriptions today? 【Details】https://twitter.com/TokenPocket_TP/status/1736182165346586821 【Powered By】Crypto Box
Hashtags
@tokenpocket_channel · Post #1021 · 17.12.2023 г., 07:59
🆕We just released TokenPocket’s New Version on Android. 🔺1.9.5🔺 🟧Fully support BRC20 tokens deposit, withdrawal, and token price display. From now on, you can easily use TokenPocket_TP to store, transfer, and trade your #BRC20 tokens and #inscriptions. #Bitcoin All-in-one, all-in TokenPocket. 👉https://tokenpocket.pro/ 【Details】https://twitter.com/TokenPocket_TP/status/1736294353277264098 【Powered By】Crypto Box
Hashtags
@tokenpocket_channel · Post #1009 · 14.12.2023 г., 10:17
🆕http://evm.ink now fully supports TokenPocket Wallet login and http://evm.ink is also listed on the TokenPocket #Inscriptions List! 👉https://www.tokenpocket.pro/ evmink is a #multichain#inscriptions indexer and marketplace. It has surpassed 270 million inscriptions and has more than 500,000 monthly unique wallet/visitors. Now users can explore #Inscription on BNBCHAIN, ethereum, and 0xPolygonLabs. 👉https://evm.ink/ 【Details】https://twitter.com/TokenPocket_TP/status/1735241797901996541 【Powered By】Crypto Box
@blackwallp · Post #68332 · 09.04.2026 г., 05:35
#надписи#мотивация#inscriptions#motivation 🎥Videowallpaper |😀Emoji |🎼Ringtone
@tokenpocket_channel · Post #983 · 07.12.2023 г., 12:59
🆕New Tool: Easy Inscription 👉https://tp-lab.tokenpocket.pro/insc/index.html?locale=en/#/ 🚀To help #Inscriptions fans gain a smoother experience on TokenPocket_TP, we've released a new inscription tool — Easy Inscription! ✅ Supported 24 networks now and more in the future ✅ Easy and efficient You can inscribe the #Inscriptions on BNBCHAIN, ethereum, 0xPolygon, avax, and other 20+ networks! #BRC20#DRC20#Ethereum#Ordinals $ORDI 【Details】https://twitter.com/TokenPocket_TP/status/1732745954607165865 【Powered By】Crypto Box
@tokenpocket_channel · Post #1024 · 18.12.2023 г., 07:45
🟥 Avascriptions is now listed on TokenPocket_TP! Avascriptions 🔴 From now on, search "Avascriptions" directly on TokenPocket or find "Avascriptions" on the TokenPocket Avalanche Hot DApp list! - You can easily access the Avascriptions market and discover $ASCT $AVAV and other AVAX #Inscriptions marketplace! #AVAX#ARC20#asct All-in-one, all-in TokenPocket! 👉https://www.tokenpocket.pro/ 【Details】https://twitter.com/TokenPocket_TP/status/1736653233781895610 【Powered By】Crypto Box
Hashtags
@tokenpocket_channel · Post #1033 · 21.12.2023 г., 05:33
✨ Unlock simplicity in #BRC20 transfer! 🚀Now, easily transfer your #BRC20 assets in just ONE step! 🔄 Inscribe and transfer seamlessly for a more efficient and convenient experience. 👉https://tokenpocket.pro Ready to experience seamless #BRC20 transactions? Follow the tutorial: 👉https://help.tokenpocket.pro/en/wallet-faq-en/btc-wallet/brc20 #Sats#ordi#RATS#Inscriptions 【Details】https://twitter.com/TokenPocket_TP/status/1737707370523005390 【Powered By】Crypto Box
@tokenpocket_channel · Post #1025 · 19.12.2023 г., 03:22
🟧 TokenPocket Now Fully supports BRC-20! #BRC20 ✅#BRC20 tokens deposit, withdrawal, and token price display. ✅ Transfer your #BRC20 in one single transaction (Inscribe and Transfer in one step) 🆕We just released the iOS new version 🔺2.1.9🔺(TP Wallet) and Android new version 🔺1.9.5🔺. Upgrade your TP Wallet/TokenPocket and discover the #BRC20#Inscriptions world with us! 👉https://www.tokenpocket.pro/ #Sats#ordi#RATS#Inscriptions 【Details】https://twitter.com/TokenPocket_TP/status/1736949473048420555 【Powered By】Crypto Box
@ethereumglobalnews · Post #1900 · 31.01.2026 г., 10:35
🚨区块链最新玩法「#铭文」正在快速升温,从 比特币 扩展至 以太坊,链上叙事正式进入「内容直接上链」阶段。 #比特幣新聞#区块链#币圈 📌 公开披露内容👇 資源搜索 🖲️👆 📌 重点解读: • 铭文不只是 NFT 延伸,而是基础层写入数据的新模式 • 链上不再只传价值,而是开始承载内容、叙事与共识 • 从转账工具,进化为「信息原生链」,正在改变区块链使用方式 #链上叙事#Web3#市场趋势 #Inscriptions#Bitcoin#区块链生态 👉 你目前对「铭文(Inscriptions)」的理解是? A️⃣ 听过但还不懂 B️⃣ 正在研究,觉得很有潜力 C️⃣ 已经实际上链操作过 👇⭐👇 🤣留言分享你的看法 👇
@tokenpocket_channel · Post #1019 · 16.12.2023 г., 11:25
Quoted TokenPocket_TP : Mint your #Inscriptions on TokenPocket Easy Inscription! TokenPocket_TP ✅Support 24 #EVM networks. 👉https://tp-lab.tokenpocket.pro/insc/index.html?locale=en/#/ Guide👉https://help.tokenpocket.pro/en/wallet-operation/tptool/inscription #AVAV#asct#ETHI#eths#Inscriptions 【Details】https://twitter.com/TokenPocket_TP/status/1735983609872630209 【Powered By】Crypto Box