Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🆓REDEEM CODES🆓
👀#Genshin🎁#Codes This Week
Aino has brought her humanoid robot 🔥🤖#Ineffa to life!
🚩The very first ARTIFICED character in the entire history of Genshin!
🗣✨Get ready for the upcoming Genshin Impact 5.8 update! It will come at the end of July, with this fresh new face!
🎁💎【 GS58YTPGFY 】NEW!! - 30k mora, three hero's wit, five mystic enhancement ore, three vajrada amethyst slivers, and three teachings of conflict
✅Genshin Impact July 2025 Codes (Full List)
Add @APKFreeDownloader_Bot to get any apk you want.