Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
Updates
😏
Hello friends, We are currently working on a new animated sticker pack, which is expected to be published at the end of next week
😐. We should also publish an emoji pack in May.
New publish date: 2nd week of May
Edit:
why publishing date is delayed?
❓
We need to release the sticker pack on all social media platforms at the same time, and some platforms like LINE App require a review period before approving and releasing the sticker pack on their own sticker store, which is why the release was delayed.
#PeachCat#NewStickers#NewEmojis
Exciting news!
🎉
Peace Elite aka Game for Peace (Chinese PUBG) and Peach & Goma are teaming up in the world of Peacekeeper Elite!
🎮Tencent Games acquired gaming rights to iconic anime franchise, Peach and Goma! Get ready for epic adventures and adorable Games featuring Peach and Goma. 📱
#PeaceElite#GameForPeace#PUBG#ChinesePUBG#PeachCat#PeachGoma
@PeachLovesGoma
❤️