Работаем с атрибутами объектов
Помимо привычного обращения к атрибутам объектов через точку, в Python есть 4 специальных функции: getattr, setattr, delattr и hasattr.
По названиям можно понять, что первые три отвечают за получение, установку и удаление атрибута. А последний проверяет, существует ли атрибут с указанным названием у объекта или нет.
Во всех функциях первыми двумя аргументами идут объект и название атрибута в виде строки. В setattr также нужно передать новое значение для атрибута.
На практике использование подобного — довольно редкий случай, но иногда может сильно выручить, так что берите на вооружение.
#python#tips
Tips importantes para el cuidado de tu cabello natural:
🔅Para lavado y desenredado, mejor dividirlo en porciones.
🔅Aplica algún aceite antes del lavado (Pre-poo).
🔅Aplica champú solo en el cráneo.
🔅Si tienes volumen, lava tu cabello trenzado.
🔅Aplica más acondicionador en las puntas.
🔅Usa agua tibia para el champú y fría para el acondicionador.
🔅No uses toallas: seca tu cabello con una camiseta de algodón.
🔅Busca en los ingredientes de tus productos, que el agua sea el primero.
🔅 Aplícate los productos en el cabello de esta manera: 🙏🏾
🔅Evita los productos con sulfatos.
🔅Corta las puntas que estén abiertas.
🔅Para dormir, usa una funda o gorro de satín.
🔅Deja descansar tu cabello de vez en cuando, con estilos protectores o turbantes.
🔅Come saludable, toma mucha agua y ejercítate.
#Tips | vía @curlyqueens
Пока клиенты лежат, можно смотреть каналы через :
https://t.me/s/S0blog
или
https://telegram.dog/s/S0blog
https://telega.one/s/S0blog
и им подобные с поддержкой предпросмотра.
Держу в курсе 👍
#tips
People are afraid to take action and create a better future for themselves because they're too worried about what others will think of them.
Instead of learning how to really make a difference in their lives, they work hard - as everybody does.
The thing is... If hard work alone had helped to create success and wealth, everyone hardworking the 9-5 would have been a millionaire by now.
The key to success isn't working hard.
The key to success is to be able to work smart.
#tips
Somewhere along the way we all go a bit mad. So burn, let go and dive into the horror, because maybe it’s the chaos which helps us find where we belong.
KEEP GOING!
#tips