Working with JSON Files in Python

preview_player
Показать описание
from datetime import timedelta

movies = [
{"id": 1, "title": "Free Guy", "year": 2021, "seconds": timedelta(hours=1, minutes=55).total_seconds()},
{"id": 2, "title": "Happy Gilmore", "year": 1996, "seconds": timedelta(hours=1, minutes=32).total_seconds()},
{"id": 3, "title": "Spider-Man Homecoming", "year": 2017, "seconds": timedelta(hours=2, minutes=13).total_seconds()},
{"id": 4, "title": "Kung Fu Panda", "year": 2008, "seconds": timedelta(hours=1, minutes=31).total_seconds()}
]
Рекомендации по теме
Комментарии
Автор

I love this video, this helped my so wow.

Ducky_
join shbcf.ru