课程: Python Essential Libraries
今天就学习课程吧!
今天就开通帐号,24,100 门业界名师课程任您挑!
Challenge: Pendulum
(bright electronic music) - [Instructor] Alright, it's time to take a little bit of a programming challenge. So let's use what we learned in this chapter about Pendulum, to tackle a date calculation problem. So here's the challenge: Now how would you write a program to calculate how many days remain until the next International Clash Day? Now if you're not familiar with International Clash Day, it's held every year on February 7th, to celebrate the music and ideals of the English rock band named, The Clash. And our program will tell us how many days are left until the next one. So, what I'm going to do is this: I'm going to go ahead and run my finished program here in the terminal, so we can see what the output looks like. So I'm going to run (sound of typing) Okay? And when I run my code, you can see that the output contains several lines, alright? The first line prints "Today is" and then the date, which is…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。