Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
😄Place
➖➖➖➖➖➖
🔘 Place refers to a physical location.
🔜 The place you’re looking for is round the corner and on the left.
🔘 Something’s place can mean the correct or most suitable location.
🔜 Once you’ve used the colouring pens, put them back in their place.
🔘 A place can be the opportunity to do something, especially something you need to earn.
🔜 I can’t believe I got a place on the course!
#Place👨🏫@America
➖➖➖➖➖➖➖➖➖➖➖➖
🆕 Crypto News @Money
😁 Crypto Game @Egame
🇺🇸 US News @America
🇯🇵 Japan News @Japan
🇦🇪 UAE News @Dubai
▶️ Popular Movies @Videos
😜 Best Funny Video @Funnys
@openmap_bot
Qué puede hacer este bot?
Este Bot puede enviar mapas y imágenes de satélite de todos los lugares de la tierra.
Idioma: Inglés
(visto en @BotsGram_cu)
#mapa, #openstreetmaps, #osm, #location, #group, #search, #inline, #place, #welcome
@junction_bot
Qué puede hacer este bot?
Este bot puede recopilar publicaciones de tus canales favoritos de Telegram, para que puedas leerlas como un servicio de noticias.
¡También puede copiar mensajes entre canales y bots, filtrar anuncios, modificar mensajes y mucho más!
Idioma: Inglés, Ruso, Turco
(visto en @BotsGram_cu)
#link, #word, #project, #feed, #messages, #group, #subscription, #telegram, #share, #channel, #questions, #command, #inline, #join, #twitter, #favorite, #collect, #news, #enter, #place, #free, #message, #welcome