Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🌎 Before the invention of the printing press, books had to be copied by hand, a process taking months or even years per copy. In 1440, Johannes Gutenberg developed the first movable type printing press in Germany, revolutionizing the spread of knowledge. The first major book he printed was the Gutenberg Bible, completed around 1455 and containing 1,282 pages. ✨
#printing⚡#history⚡#invention
👉subscribe Interesting Planet
👉more Channels
🌎 The printing press, invented by Johannes Gutenberg around 1440, revolutionized how information spread. Movable metal type allowed fast, affordable book production—leading to the first mass communication and fueling the European Renaissance. ✨
#invention⚡#history⚡#printing
👉subscribe Interesting Planet
Мы регулярно печатаем футболки вручную через трафареты. Их лично отрисовывает и вырезает @bednotown , а потом мы вместе переносим рисунок на изделие. Футболки можно найти на сайте в разделе «Крафтовая коллекция». Также, обращайтесь в директ, если заинтересует какая позиция.
Печатаем мы акрилом по ткани - это надежно и крепко, да и сам продукт получается эксклюзивным и пропитанным теплотой рук.
Хочешь сделать хорошо - сделай это сам (с)
Хорошего дня, друзья!
#bednotown#bednotownfactory#handmade#tshirt#craft#craftcollection#damirmuratov#omsk#siberia#art#acrylicpainting#decola#sea#sealife#sealovers#exclusive#rarepicture#rare#trafaret#printing