Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🔥 LAST DAY of Top Blacksmiths #2! 🔥
⚒️ Top 50 Blacksmiths will share 150,000 AURA + $100 $SING! 🏆
📌 Ranking rules:
✅Leaderboard is based on Points
✅If tied, higher pot tier ranks higher
⏳ EndsFeb 5, 14:00 UTC – make your final push! 🚀
#TopBlacksmiths#AuraRewards
🎤Announcement| Mystic Garden Game |Chat| Spotlight Channel
🌟Mystic Garden is Officially Open!🌟
🎉 The wait is over—step into the magic now!
🔸AURA Launchpool Stakers: Your AURA rewards are ready!
🔸Beta Testers: Enjoy 2x AURA on your deposits and beta test reward as a special thank-you!
🔸Everyone: It’s time to explore, grow, and thrive in Mystic Garden!
Let the adventure begin! 🌱✨
Play Now: https://t.me/mystic_garden_bot/app
#MysticGarden#GameLaunch#AURARewards