02 2018 档案
摘要:import requestsimport osurl = input("Please input URL\n")root = "D://pics//" kv = { "User-agent":"Mozilla/5.0" }path = root + url.sp...
阅读全文
摘要:import requestsurl = "http://m.ip138.com/ip.asp?ip="IpAddress = input("Please input the ip address\n")try: r = requests.get(url+IpAddr...
阅读全文
摘要:import requestsimport oskv = { "User-agent":"Mozilla/5.0"#模拟浏览器 } def getHtmlText(url): try: r = requests.get(url,timeout = 30,head...
阅读全文
摘要:AtCoDeer is thinking of painting an infinite two-dimensional grid in a checked pattern of side K. Here, a checked pattern of side K is...
阅读全文
摘要:#define MAXN 1000005char s[MAXN];//原字符串char New[2*MAXN];//处理过后得到的新字符串int p[2*MAXN];//记录以每个字符为中心的最长回文长度+1,注意是+1后的结果//这里为什么多出1一定要想明白,很重要...
阅读全文
摘要:Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple question, "Ca...
阅读全文