Работаем с атрибутами объектов
Помимо привычного обращения к атрибутам объектов через точку, в Python есть 4 специальных функции: getattr, setattr, delattr и hasattr.
По названиям можно понять, что первые три отвечают за получение, установку и удаление атрибута. А последний проверяет, существует ли атрибут с указанным названием у объекта или нет.
Во всех функциях первыми двумя аргументами идут объект и название атрибута в виде строки. В setattr также нужно передать новое значение для атрибута.
На практике использование подобного — довольно редкий случай, но иногда может сильно выручить, так что берите на вооружение.
#python#tips
Normal Vs Advanced English
💎 Give me more details.
💎Fill me in.
💎 Calm down.
💎Put yourself together.
💎 You've to decide.
💎You've to make up your mind.
💎 Nice car!
💎Nice ride!
💎 I'm tired.
💎I'm zapped.
#sirjimmy
#Teamjimmy
#Tips
💞Learn English Confidentiality💞
1. Listen and repeat
We all have a favorite movie, television show or even YouTube channel. But instead of just watching them silently, listen carefully to what the characters or hosts are saying and repeat the dialogue that interests you. Go ahead and pause, rewind and listen to the lines several times if you must. Or better yet, turn on the English subtitles setting to help you identify each word. This is a fun way of practicing both your listening and speaking skills with materials that are both enjoyable and entertaining.
2. Find a friend
It’s always difficult to practice by yourself, especially when it comes to improving your speaking skills. Therefore, find a likeminded group of friends or classmates who shares your goal of becoming more confident in using English. Get together and implement the “English Only” rule while you hang out, meaning that everyone must only speak English for the next hour or two. With such a support system, you’ll feel more secured to open up and speak English without being hampered by insecurities.
3. Read out loud
Whether you prefer a novel or a piece of non-fiction text, spend at least 30 minutes every day reading, and then another 30 minutes reading out loud. This is a great way of developing your reading skills while practicing pronunciation as well as intonation of various words and lengths of sentences. If you are unsure of how to pronounce a specific word, simply consult a learner’s dictionary, Google or YouTube. But don’t get too caught up on the details of every single word you don’t understand. The point of this exercise is to enhance your confidence in speaking, and reading out loud allows you to practice pronunciation in the privacy and comfort of your own home/room.
4. Don’t be afraid of making mistakes
Remember: it’s okay to make mistakes. If you find yourself stumbling across long or complicated words, simply stop and give yourself a few seconds to breathe, then continue speaking. The fact that you’re communicating in a language that is not your mother tongue is reason enough for your to be proud of your accomplishments.
As with every difficult task, the key to speaking English with confidence is to practice, practice and practice some more. Be consistent in your language journey and make sure to set aside some time every day to speak English!
Study well ,and have an ice cream
😊
✓||\
_/\_[🍧]
#Tips
#Teamjimmy
#sirjimmy
When downloading a PDF, if it ends with .exe, delete it. It's probably a virus. The .exe extension indicates it is an executable file designed to run on your computer, and you should not open it.
@googlefactss#technology#tips#funfact
Новогодняя статистика🎄
До Нового года остается меньше недели! Пока праздничная суета не захватила всех полностью, делюсь результатами анализа данных о поздравительных текстах и открытках. Всего получилось собрать 10,8 тыс. новогодних постов из 39 тематических групп «ВКонтакте» за 2009–2023 годы✨
Основой проекта стали данные, которые я собирала в 2022 году для исследования ТАСС. Для новых карточек обновила статистику, местами переписала и оптимизировала код и доработала анализ цветов. Также сделала обобщающие карточки с типичными и нетипичными пожеланиями🤓
Какое поздравление вам нравится больше?
🎅 — типичное
🤪 — нетипичное
P.S. В процессе с ностальгией вспоминала рабочий проект. Благодарна Сабине Вахитовой, которая тогда руководила инфографикой ТАСС. Она поверила в мои силы и поддержала все идеи. Благодаря ее доверию я впервые притронулась к анализу изображений и цветов в python❤️
#датавиз#личное#python
Не зеленая "Матрица"
31 марта 25 лет назад в массовый прокат вышла первая часть трилогии "Матрица".
К этой дате решила использовать относительно недавно освоенный алгоритм анализа цвета видео в python и составила палитры трех фильмов (про алгоритм расскажу в отдельной серии постов).
Такие визуализации уже делали (например, тут и тут), но мне хотелось дополнительно выделить основные цвета и интересные акценты.
"Матрица" в первую очередь ассоциируется с зелеными оттенками, но цветокоррекция кадра во всех частях меняется в зависимости от локаций и основных сущностей.
P.S. За помощь по вопросам дизайна спасибо Антону💚
P.P.S. С коллегами в ТАСС к дате сделали постер с Нео и шуточное бинго😎
#датавиз#личное#python