Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
“Sayt hamma qurilmalarda chiroyli chiqishi kerak!” dedingiz-da…
Natijada 50 ta telefon, 1 ta zaryadlovchi, va 0 ta sabr😂
#DasturlashHayoti#Frontend#Responsive#Hazil
💻@dasturlash_hayoti— dasturchilar uchun eng kerakli maslahatlar, hazillar va foydali kontent!
#typescript#css#css_framework#functional_css#postcss#responsive#tailwindcss#utility_classes
Tailwind CSS is a utility-first CSS framework that lets you style websites by adding small, reusable classes directly in your HTML, instead of writing separate CSS files. It provides ready‑made utilities for layout, spacing, colors, and more, so you can build custom user interfaces quickly and consistently. Clear documentation, an active community, and contribution guidelines make it easier to learn, get help, and even contribute to the project, which can save time, reduce CSS complexity, and speed up your UI development.
https://github.com/tailwindlabs/tailwindcss