Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🚀 Time to Check In, Go! SmartChain AI Community!
Check in now if you're yet to👇
🔗https://t.me/thegoprojectbot?start=twitter
Here's an another opportunity to increase your daily dose of engagement and rewards! 🎮💰
And once you're in
1. Click "Open App" to get started
2. Tap the Go! token to collect rewards
3. Complete your daily tasks and quests to earn GoXP
Most importantly,
Stay active and climb your way to the top. Your participation paves the way for you 💪
#CheckIn#EarnRewards#GoSmartChain#GoTonapp
-----------------
Join: 🐣X✉️Chat✉️News🤖Discord
Play: 🕹️TON App💻Web App
Info: 🖥Newsletter🌐Website🌐Blog
There's a lot to be made by tapping and claiming coins from the Go! Ton App!
Get started Here: https://t.me/thegoprojectBot
This bot is your free pass to Sweet rewards, get started Now.
Once you get started, you've got to maintain your spot as a weekly and monthly active user. Here's why:
🔹 There are more rewards as you get more active
🔹 You get features nobody else gets
🔹 You get into higher ranks which means exclusive airdrops will be sent to you.
🔹 You get access to collectibles reserved just for you
🔹 You get to Contribute more to the community, and influence the direction of the project
Ready to start Tapping?
Let's Go: https://t.me/thegoprojectBot
#gotonapp#tap2earn#bot#rewards#boost#wealth
Join: 🐣X✉️Chat✉️News🤖Discord
Play: 🕹️TON App💻Web App
Info: 🖥Newsletter🌐Website🌐Blog