Skip to content

September 2020

[Python] Use enumerate() function to output index and element at the same time

Last Updated on 2020-09-25 by Clay

Display Python code on the screen

Introduction

enumerate() is a function often used in Python. Its usage is very simple, just only need use enumerate(iterable, start_index). The first parameter enters the iterable object, and the second parameter enters the first number to be counted (Calculate from 0 by default).

Let's take a look at a simple sample code.

Read More »[Python] Use enumerate() function to output index and element at the same time

[Python] Using package pytube to download YouTube videos

Last Updated on 2020-09-06 by Clay


Introduction

Various electronic entertainments of modern people are inseparable from YouTube, whether it is to follow dramas, query tutorial, watch funny videos ... we will watch it on YouTube platform. Saying watching YouTube is the most important thing for modern people.

Sometimes, we will need to download videos from YouTube. Of course, this matter itself is likely to violate intellectual property rights, so our use is limited to teaching and non-commercial use. The downloaded video must be deleted within a certain period of time.

Read More »[Python] Using package pytube to download YouTube videos
Exit mobile version