Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
@Instatoolsbot
¿Qué puede hacer este bot?
Con este bot puede descargar reels, publicaciones, videos, historias, IGTV y más de Instagram.
Idiomas: Inglés y árabe
Nota: Es importante usar Telegram Direct para acceder a este bot.
(Visto en @BotsGram_cu)
#instagram#medios#descargar
🤖 Nuevo robot
📋 Nombre: MediaTranscribeBot
🆔 Nombre de usuario: @MediaTranscribeBot
⭐️ Calificación: ⭐️⭐️⭐️⭐️ (4.3/5 sobre 124 votos)
➖➖➖
ℹ️Descripción: ¡Transcribe, resume y traduce en cualquier idioma!
Cargue cualquier archivo multimedia (grabaciones de voz, clips de audio o videos) de hasta 4 horas de duración.
🌐 Idiomas: Inglés
💬 Soportes en línea: no
👥 Grupos: no
#️⃣ Etiquetas: #convertidor#audio#medios#voz#texto#video#resumenador