摘要:
想把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 阅读全文