Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
✨Price US $14.00✨
#Temu#Aliexpress
#Automatic Pet Bird Bath USB Electric Large Bird Bathtub Shower Multipurpose Bird Bathtub Parrot Bathtub For Parakeet Cleaning
Get it By Aliexpress 🛒
https://s.click.aliexpress.com/e/_EGqI1L6
Get It By amazon 👇🛒
https://amzn.to/3Z9kTNw
#Temu#Aliexpress
#Automatic Pet Bird Bath USB Electric Large Bird Bathtub Shower Multipurpose Bird Bathtub Parrot Bathtub For Parakeet Cleaning
Get it By Aliexpress 🛒
https://s.click.aliexpress.com/e/_EGqI1L6
Get It By amazon 👇🛒
https://amzn.to/3Z9kTNw
#Automatic Pet Bird Bath USB Electric Large Bird Bathtub Shower Multipurpose Bird Bathtub Parrot Bathtub For Parakeet Cleaning
Get it By Aliexpress 🛒
https://s.click.aliexpress.com/e/_EGqI1L6
Get It By amazon 👇🛒
https://amzn.to/3Z9kTNw
#birdlife#birdwatching#birdslover#Birds
@SlackRobot
Qué puede hacer este bot?
Este es un bot que se puede enseñar a responder mensajes como usted quiere.
Idioma: Inglés
(visto en @BotsGram_cu)
#automatic, #auto, #respond, #slack, #webui, #custom, #answers, #message, #question