课程: Python Essential Libraries
今天就学习课程吧!
今天就开通帐号,24,100 门业界名师课程任您挑!
Challenge: Pillow
(modern music) - [Instructor] All right, you know what time it is. So now that we've seen how to use some of the different parts of the Pillow library, it's time to try a programming challenge. So in this challenge, we're going to use Pillow to take an entire folder of image files such as the ones you see here in the images archive and create a thumbnail version of each image. So, let me show you what I mean. So here in this folder, there's about 20 different kinds of images, there's JPEG, PNG, GIFs and so on. So, you can see that each one of these is a pretty full-sized image, okay? Right, fairly large images. And what I'm going to do is go to my terminal and here in my Pillow directory I'm going to run the finished version of the challenge. So let's go ahead and Python. And I'm going to run this. And we'll give that a few moments to complete. Okay, it looks like it's done. So when that script finishes, let's go back…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。