Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
@BTClayer2#BEVM First Inscriptions Start Soon #BEVM $BEVM
How To Get BEVM Bitcoin..?
1) Go To: http://app.omnibtc.finance/swap
- Connect New Wallet
- Bridge ARB ETH To BEVM BTC
2) Add RPC: https://chainlist.org/chain/1501
🆕Bevscriptions now fully supports #TokenPocket login! BM20_BTClayer2
✅Bevscriptions is the first inscription platform on BTC L2 - BTClayer2, which created on the #BEVM network now and will be built on more BTC Layer2 networks later.
🔥You can access Bevscriptions with your #TokenPocket wallet. (Both Mobile Wallet and Chrome Extension)
👉https://www.tokenpocket.pro/
👉https://www.bevscriptions.com/
【Details】https://twitter.com/TokenPocket_TP/status/1752292278125949209
【Powered By】Crypto Box
🆕 BEVM is now live on TokenPocket. BTClayer2
🔥BEVM is the first fully decentralized EVM-compatible Bitcoin L2 built on #Taproot, using #BTC as gas. It allows all DApps that can run in the ethereum ecosystem to run on #Bitcoin L2.
🚀How to create/import a #BEVM wallet on #TokenPocket Mobile Wallet and Chrome Extension Wallet?
Guide👉https://help.tokenpocket.pro/en/wallet-operation/how-to-create-a-wallet/bevm
Download #TokenPocket
👉https://www.tokenpocket.pro/
👉https://extension.tokenpocket.pro/
#Bitcoin#TokenPocket#Layer2
【Details】https://twitter.com/TokenPocket_TP/status/1738379442853146866
【Powered By】Crypto Box