摘要: 想把POJ的所有题目下载下来,就用Python写了个小东西,分享一下,请大家指教~from urllib import urlopenimport os.pathurl = "http://poj.org/problem?id="num = 2897N=3982if os.path.isdir(r"d:\download\POJ"):   passelse:   os.mkdir(r"d:\download\POJ")  while num = N:  webdata = urlopen(url + str(num)).read()   print webdata   myfile = fi 阅读全文
posted @ 2010-12-05 22:46 excellentbright 阅读(480) 评论(0) 推荐(0) 编辑