bbc

如何写程序自动下载BBC Learning English的所有在线课程

自闭症网瘾萝莉.ら 提交于 2020-12-14 06:01:03
BBC Learning English 在线3大系列课程: Lower intermediate 、 Intermediate 、 English My Way 声音很悦耳,尤其是Jamaica Inn和The Importance of Being Earnest,堪称完美,百听不厌,这对于英语兴趣的培养和英语能力的提升非常有帮助。到目前为止,这些课程的mp3和pdf文件已经有 2859 个,而且还在持续增长中,如果能写个程序自动地把这些文件下载下来就好了,要是手工一个个下载,那得累死吧,尤其是对那些还从来没有学过这个课程的人。 下载下来后将文件拷贝到手机上,在挤地铁挤公交的时候戴着耳机听一听,充分利用时间嘛,听不懂的还可以看看录音稿,要不然直接在BBC的网站上看,那太不方便了。 首先,我们使用maven引入jsoup依赖: <dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.7.2</version> </dependency> 接下来就可以写代码了: import org.jsoup.Connection; import org.jsoup.Jsoup; import org.jsoup.nodes.Element; import java.nio.file

SqlZoo.net习题答案:Using nested SELECT.

感情迁移 提交于 2019-11-26 18:37:32
习题地址: http://sqlzoo.net/1a.htm 表结构:  bbc( name , region, area, population, gdp) 1a. List each country name where the population is larger than 'Russia'. select name from bbc where population > ( select population from bbc where name = ' Russia ' ) 1b. List the name and region of countries in the regions containing 'India', 'Iran'. select name, region from bbc where region in ( select region from bbc where name in ( ' India ' , ' Iran ' )) 1c. Show the countries in Europe with a per capita GDP greater than 'United Kingdom'. select name from bbc where region = ' Europe ' and GDP / population > (

SqlZoo.net习题答案:Using the SELECT statement.【bbc】

余生长醉 提交于 2019-11-26 18:36:37
习题地址: http://sqlzoo.net/1.htm 表结构:bbc( name , region, area, population, gdp) 2a. Show the name for the countries that have a population of at least 200 million. (200 million is 200000000, there are eight zeros) select name from bbc where population >= 200000000 2b. Give the name and the per capita GDP for those countries with a population of at least 200 million. select name, GDP / population from bbc where population >= 200000000 2c. Show the name and population in millions for the countries of 'Middle East' Divide the population by 1000000 to get population in millions. select name,

SqlZoo.net习题答案:Using SUM, COUNT, MAX, AVG, DISTINCT and ORDER BY.

与世无争的帅哥 提交于 2019-11-26 18:36:32
习题地址: http://sqlzoo.net/2.htm 表结构:bbc( name , region, area, population, gdp) 1b. List all the regions - just once each. select distinct region from bbc 1c. Give the total GDP of Africa select sum (GDP) from bbc where region = ' Africa ' 1d. How many countries have an area of at least 1000000 select count (name) from bbc where area >= 1000000 1e. What is the total population of ('France','Germany','Spain') select sum (population) from bbc where name in ( ' France ' , ' Germany ' , ' Spain ' ) 2a. For each region show the region and number of countries. select region, count (name) from bbc group