ycliper

Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
Скачать

Python Magic Methods | Differences between __str__ to __repr__

Автор: JimShapedCoding

Загружено: 2020-11-29

Просмотров: 20325

Описание: Python _str_ _repr_
#Python

👍Welcome to my Python Intermediate videos Series

In this video, we will understand what magic methods are in python, but we will try to focus on two of them. Since str and repr are responsible for similar behaviors, then it is important to mark the differences between those.

Connect with me with:
Instagram:   / jimshapedcoding  
E-mail: [email protected]
Twitter :   / jimshapedcoding  
Discord :   / discord  

👍 Subscribe for more Python tutorials like this:
   / @jimshapedcoding  
🔥 Comment below on other topics you want to see tutorials next on my Channel.
-----------------------------------------------

My website:
🔥 http://www.jimshapedcoding.com

🎥 My YouTube Gear 🎥
Microphone ( Rode NT-Mini) : https://amzn.to/3bDqEer
Keyboard ( Razer Blackwidow Green Switch ) : https://amzn.to/3bExDnu
Mouse ( Razer LanceHead ) : https://amzn.to/3if0JuV
Lights ( Neewer 2-Pack Dimmable ): https://amzn.to/3oFN1DP

Timeline for the video:
00:00 - 01:34 - What are magic methods in Python?
01:35 - 05:33 - Creating _str_ in your Classes.
05:34 - 07:38 - How is _repr_ different from _str_ ?
07:39 - 10:27 - Best practices for _str_ and _repr_
10:28 - 14:02 - Examples in Python Shell

Не удается загрузить Youtube-плеер. Проверьте блокировку Youtube в вашей сети.
Повторяем попытку...
Python Magic Methods | Differences between __str__ to __repr__

Поделиться в:

Доступные форматы для скачивания:

Скачать видео

  • Информация по загрузке:

Скачать аудио

Похожие видео

Python Args Kwargs | How to use it and why it does exist

Python Args Kwargs | How to use it and why it does exist

__str__ vs __repr__ methods  in Python || Python Tricks

__str__ vs __repr__ methods in Python || Python Tricks

Please Master This MAGIC Python Feature... 🪄

Please Master This MAGIC Python Feature... 🪄

Python File Handling | Working with File Objects | Read&Write to a File

Python File Handling | Working with File Objects | Read&Write to a File

Python MAGIC METHODS are easy! 🌟

Python MAGIC METHODS are easy! 🌟

Python Tutorial - if __name__ == '__main__'

Python Tutorial - if __name__ == '__main__'

Чистейший стиль кодирования, в котором ошибки практически невозможны

Чистейший стиль кодирования, в котором ошибки практически невозможны

Декораторы Python — наглядное объяснение

Декораторы Python — наглядное объяснение

The Builder Pattern in Python: Finally Explained!

The Builder Pattern in Python: Finally Explained!

Филипп Робертс: Что за чертовщина такая event loop? | JSConf EU 2014

Филипп Робертс: Что за чертовщина такая event loop? | JSConf EU 2014

Python HOW TO structure a Beginner OR Advanced Projects ?

Python HOW TO structure a Beginner OR Advanced Projects ?

Class Methods, Static Methods, & Instance Methods EXPLAINED in Python

Class Methods, Static Methods, & Instance Methods EXPLAINED in Python

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

Что такое Rest API (http)? Soap? GraphQL? Websockets? RPC (gRPC, tRPC). Клиент - сервер. Вся теория

25 привычек новичка в Python, от которых стоит избавиться

25 привычек новичка в Python, от которых стоит избавиться

ООП На Простых Примерах | Объектно-Ориентированное Программирование

ООП На Простых Примерах | Объектно-Ориентированное Программирование

Вам следует поместить это во все ваши скрипты Python | if __name__ == '__main__': ...

Вам следует поместить это во все ваши скрипты Python | if __name__ == '__main__': ...

Python - Pydantic classes fields tutorial (40+ covered)

Python - Pydantic classes fields tutorial (40+ covered)

Python OS Module | The best functions

Python OS Module | The best functions

String Conversion in Python: When to Use __repr__ vs __str__

String Conversion in Python: When to Use __repr__ vs __str__

5 Useful Dunder Methods In Python

5 Useful Dunder Methods In Python

© 2025 ycliper. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]