0.00
0 читателей, 4897 топиков

ООП 19 Магические методы __eq__ и __hash__. Dunder methods в Python


stepik.org/course/72969/promo
Записывайся на курс на Stepic по ООП, где найдешь много практических задач

Стать спонсором канала и получить доступ к дополнительным материалам по Python
www.youtube.com/channel/UCMcC_43zGHttf9bY-xJOTwA/join
boosty.to/egoroff_channel
www.patreon.com/artem_egorov

egoroffartem.pythonanywhere.com/course/oop-python/magicheskie-metody-__eq__-i-__hash__

Методы экземпляра. Аргумент self
youtu.be/Gnt7abcf4_M

Декоратор Property
youtu.be/qA1fUZevVxU

Декораторы в Python
youtu.be/Va-ovLxHmus

youtu.be/0Owmz8VucBk
Инициализация объекта. Метод init

youtu.be/Z8o7eBhgzKg
Публичные, приватные, защищенные атрибуты и методы

Магические методы в Python очень важны.
В видео разберем такие магические методы как __add__, __mul__, __sub__ и __truediv__

Магический метод __eq__ вызывается, когда экземпляр нашего класса участвует в проверке на равенство

Магический метод __eq__ вызывается, когда экземпляр нашего класса участвует в проверке на равенство

Магический метод __ne__ вызывается, когда экземпляр нашего класса участвует в проверке на неравенство

Магический метод __lt__ вызывается, когда экземпляр нашего класса участвует в проверке на знак меньше

Магический метод __le__ вызывается, когда экземпляр нашего класса участвует в проверке на знак меньше или равно

Магический метод __gt__ вызывается, когда экземпляр нашего класса участвует в проверке на знак больше

Магический метод __ge__ вызывается, когда экземпляр нашего класса участвует в проверке на знак больше или равно

Object-Oriented Programming (OOP) in Python 3

egoroffartem.pythonanywhere.com/course/oop-python/praktika-sozdanie-klassa-i-ego-metodov

stepik.org/course/63085/promo
Курс на степике

Все видео этого курса можете найти на сайте
egoroffartem.pythonanywhere.com/course/python

или в Вк
vk.com/videos-177962775?section=album_1

Если кому нужна помощь, предлагаю индивидуальные занятия. Подробнее пишите в личку в вк
vk.com/artem_egoroff

vk.com/python.study
В данном группе можете найти информацию о новых видео и задать вопросы

Why do prime numbers make these spirals?


A story of mathematical play.
Home page: www.3blue1brown.com
Brought to you by you: 3b1b.co/spiral-thanks

Based on this Math Stack Exchange post:
math.stackexchange.com/questions/885879/meaning-of-rays-in-polar-plot-of-prime-numbers/885894

Want to learn more about rational approximations? See this Mathologer video.
youtu.be/CaasbfdJdJg

Also, if you havent heard of Ulam Spirals, you may enjoy this Numberphile video:
youtu.be/iFuR97YcSLM

Dirichlets paper:
arxiv.org/pdf/0808.1408.pdf

Important error correction: In the video, I say that Dirichlet showed that the primes are equally distributed among allowable residue classes, but this is not historically accurate. (By «allowable», here, I mean a residue class whose elements are coprime to the modulus, as described in the video). What he actually showed is that the sum of the reciprocals of all primes in a given allowable residue class diverges, which proves that there are infinitely many primes in such a sequence.

Dirichlet observed this equal distribution numerically and noted this in his paper, but it wasnt until decades later that this fact was properly proved, as it required building on some of the work of Riemann in his famous 1859 paper. If Im not mistaken, I think it wasnt until Vallée Poussin in (1899), with a version of the prime number theorem for residue classes like this, but I could be wrong there.

In many ways, this was a very silly error for me to have let through. It is true that this result was proven with heavy use of complex analysis, and in fact, its in a complex analysis lecture that I remember first learning about it. But of course, this would have to have happened after Dirichlet because it would have to have happened after Riemann!

My apologies for the mistake. If you notice factual errors in videos that are not already mentioned in the videos description or pinned comment, dont hesitate to let me know.

— These animations are largely made using manim, a scrappy open-source python library: github.com/3b1b/manim

If you want to check it out, I feel compelled to warn you that its not the most well-documented tool, and it has many other quirks you might expect in a library someone wrote with only their own use in mind.

Music by Vincent Rubinetti.
Download the music on Bandcamp:
vincerubinetti.bandcamp.com/album/the-music-of-3blue1brown

Stream the music on Spotify:
open.spotify.com/album/1dVyjwS8FBqXhRunaG5W5u

If you want to contribute translated subtitles or to help review those that have already been made by others and need approval, you can click the gear icon in the video and go to subtitles/cc, then «add subtitles/cc». I really appreciate those who do this, as it helps make the lessons accessible to more people.

— 3blue1brown is a channel about animating math, in all senses of the word animate. And you know the drill with YouTube, if you want to stay posted on new videos, subscribe: 3b1b.co/subscribe

Various social media stuffs:
Website: www.3blue1brown.com
Twitter: twitter.com/3blue1brown
Reddit: www.reddit.com/r/3blue1brown
Instagram: www.instagram.com/3blue1brown_animations/
Patreon: patreon.com/3blue1brown
Facebook: www.facebook.com/3blue1brown

Гений (2016) | Genius | Фильм в HD


Подпишись на наш канал www.youtube.com/CentralPartnership и ты сможешь смотреть фильмы в HD онлайн бесплатно в хорошем качестве.
________________________________________________________________

История о непростой дружбе двух очень талантливых людей: писателя Томаса Вулфа и издателя Макса Перкинса, открывшего всему миру таких великих романистов, как Ф. Скотт Фицджеральд и Эрнест Хемингуэй.
________________________________________________________________

● Central Partnership в Google Play: goo.gl/wqhj6C

● Central Partnership в социальных сетях:
Instagram — instagram.com/centralpartnership
Facebook — www.facebook.com/centpart
Vkontakte — vk.com/centpart

● Официальный сайт: www.centpart.ru

Куда класть исходники / Григорий Петров [Python Meetup 29.05.2015]


ytimg.preload(https://r2---sn-axq7sn7e.googlevideo.com/generate_204);ytimg.preload(https://r2---sn-axq7sn7e.googlevideo.com/generate_204?conn2);Куда класть исходники / Григорий Петров [Python Meetup 29.05.2015] — YouTube<link rel=«alternate» type=«application/json oembed» href=«www.youtube.com/oembed?format=json

Квантовый компьютер убьет Биткоин? | Угроза Биткоину


Квантовый компьютер убьет Биткоин? Сможет ли квантовый компьютер взломать алгоритмы Биткоина и уничтожить асимметричное шифрование? Биткоин на данный момент использует следующие криптографические алгоритмы: ECDSA, SHA-256 и RIPEMD-160. Квантовый компьютер сможет взломать лишь алгоритм эллиптической кривой ECDSA, который можно заменить на подпись Лэмпорта или другой алгоритм цифровой подписи, использующий необратимые ХЕШ функции.

☑️Наш канал в Telegram:
t-do.ru/crypt0inside

☑️Рекомендую лучший VPN NordVPN — bit.ly/2kIBhVe

☑️Наш Twitter:
twitter.com/Crypt0_Inside

⏪Лучшие биржи для торгов криптовалютой ⏩

★Биржа Binance — Лучшая биржа с самой низкой комиссией за внутренние переводы. На бирже очень легко получить верификацию и начать торговать.
goo.gl/aqDesF

★Поддержать проект:
BTC — 13oktSsmKABarzdfdYUFnvkX47keJVbgNG
ETH — 0x70a7034efC9ca7Dc80F34cF1cd4dBC1Aed6c49C0

Thinking outside the 10-dimensional box


Visualizing high-dimensional spheres to understand a surprising puzzle.
Home page: www.3blue1brown.com/
Brought to you by Brilliant: brilliant.org/3b1b
And by you: 3b1b.co/high-d-thanks

Podcast! www.benbenandblue.com/
Check out Ben Eaters channel: www.youtube.com/user/eaterbc

— Animations largely made using manim, a scrappy open source python library. github.com/3b1b/manim

If you want to check it out, I feel compelled to warn you that its not the most well-documented tool, and it has many other quirks you might expect in a library someone wrote with only their own use in mind.

Music by Vincent Rubinetti.
Download the music on Bandcamp:
vincerubinetti.bandcamp.com/album/the-music-of-3blue1brown

Stream the music on Spotify:
open.spotify.com/album/1dVyjwS8FBqXhRunaG5W5u

If you want to contribute translated subtitles or to help review those that have already been made by others and need approval, you can click the gear icon in the video and go to subtitles/cc, then «add subtitles/cc». I really appreciate those who do this, as it helps make the lessons accessible to more people.
— 3blue1brown is a channel about animating math, in all senses of the word animate. And you know the drill with YouTube, if you want to stay posted on new videos, subscribe, and click the bell to receive notifications (if youre into that).

If you are new to this channel and want to see more, a good place to start is this playlist: 3b1b.co/recommended

Various social media stuffs:
Website: www.3blue1brown.com
Twitter: twitter.com/3Blue1Brown
Patreon: patreon.com/3blue1brown
Facebook: www.facebook.com/3blue1brown
Reddit: www.reddit.com/r/3Blue1Brown

ЛЕСНАЯ ИЗБА ОТШЕЛЬНИКОВ | жизнь в дикой природе, трофеи, люди Севера, тайга, оружие, Фильм 2017


Фильм о путешествии на Север! Настоящие дикие места, где человек — редкий гость. Охота и рыбалка, редкие лесные избы, редкие суровые северяне, которые богаты душой и всегда рады помочь. Уникальные кадры! Фильм обязателен к просмотру!

ВАКЦИНА И ЧИПЫ. ЕСТЬ ЛИ СВЯЗЬ?


ytimg.preload(https://r14---sn-axq7sn76.googlevideo.com/generate_204);ytimg.preload(https://r14---sn-axq7sn76.googlevideo.com/generate_204?conn2);ВАКЦИНА И ЧИПЫ. ЕСТЬ ЛИ СВЯЗЬ? — YouTube<link rel=«alternate» type=«application/json oembed» href=«www.youtube.com/oembed?format=json