Creating Python Data Types with Classes - Going Beyond an Initial Python Script смотреть онлайн
Creating Python Data Types with Classes
Part of the lecture series "Going Beyond an Initial Python Script":
https://nickderobertis.github.io/fin-model-course/lectures/4-going-beyond-an-initial-python-script
Full Course Website:
https://nickderobertis.github.io/fin-model-course/
Notes
--------
- We've talked about strings, floats, ints, lists, tuples, and dicts as basic data types. It is possible to define your own custom data types as well using classes
- I will not be expecting you to construct your own data types in this class. This section is mainly so you can understand how Python works in general. We will start using custom data types defined in external packages so it is good to have an understanding of this and how to use custom objects.
- The difference between objects of the same data type (same class definition) is the data contained within. They will all have the same functions attached to them (called methods when it is functions attached to objects)
- Feel free to study the car example in more detail to get a greater understanding of how to define classes, but we will not spend time on this
- Dataclasses are simplified versions of classes meant to group data together. We will use them to organize our model inputs.
- The lab exercises test working with externally-defined custom data types and creating and using dataclasses for our model inputs.
Resources
------------
- Python Basics: https://nickderobertis.github.io/fin-model-course/_static/Examples/Introduction/Python/Python%20Basics.ipynb
- Python Basics Lab Exercises: https://nickderobertis.github.io/fin-model-course/_static/Materials%20for%20Lab%20Exercises/Python%20Basics/Python%20Basics%20Lab.ipynb
- Car Class Example: https://nickderobertis.github.io/fin-model-course/_static/Examples/Introduction/Python/car_example.py
- Python Classes Official Reference: https://docs.python.org/3/reference/datamodel.html
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Creating Python Data Types with Classes - Going Beyond an Initial Python Script» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.