Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🚀 Excited to announce that our partner, Cowtopia, has officially launched their new game!
🎉 Tons of opportunities for users to experience and earn profits await. Join now and explore the world of Cowtopia! 🌟
#Cowtopia#Gaming#Profit#JoinNow#SingSing Partnership
Follow Cowtopia🐮
Channel | Chat | Twitter | Website
🚨 Last Chance: SLEX Whitelist is Coming to an End! ⏳
🔥Time is ticking! The exclusive opportunity to join the SLEX Whitelist only for the community is nearing its end on February 1st. This is an exceptional way to get early access to a limited allocation of SLEX Coins before Public listing!
🤝Take your last chance and join SLEX Whitelist: slex.io/launchpad/slex
🤔We've also got an exciting way to show you the ambitious and in-depth look at SLEX plans and vision on Binance:www.binance.com/en-AE/feed/post/1058789
#SLEXWhitelist#SLEXExchange#JoinNow#BinanceArticle#SLEXCoin#PublicSale#SLEXLaunchpad
Website| Telegram | Reddit | Facebook | Instagram | Medium | Linkedin | Twitter
🚀🔥 Crypto Melt Pot – The Next Big Gem is Here! 🔥
Let’s build something massive together! 🌍
We’re creating a strong community where everyone grows and earns together. 💰
👉 Join our movement now – don’t stay behind!
💎 Be part of the early believers, support the project, and buy the token before the pump! 🚀
📢 Official Links:
🔗 Telegram: Join the Community
🐦 Twitter (X): Follow Us
💰 Contract Address (CA):
GRxRRM4fkfFUmniJspwn8beiXdfffXrBDpbooaKkpump
🔥 Let’s grow, trade, and win together — the earlier you join, the more you earn! 💸
#CryptoMeltPot#Solana#DeFi#PumpToken#CryptoGem#JoinNow#BuyTheDip#CryptoCommunity