02 2018 档案

摘要:import requestsimport osurl = input("Please input URL\n")root = "D://pics//" kv = { "User-agent":"Mozilla/5.0" }path = root + url.sp... 阅读全文
posted @ 2018-02-09 15:50 Assassin_poi君 阅读(164) 评论(0) 推荐(0) 编辑
摘要:import requestsurl = "http://m.ip138.com/ip.asp?ip="IpAddress = input("Please input the ip address\n")try: r = requests.get(url+IpAddr... 阅读全文
posted @ 2018-02-09 15:44 Assassin_poi君 阅读(407) 评论(0) 推荐(0) 编辑
摘要:import requestsimport oskv = { "User-agent":"Mozilla/5.0"#模拟浏览器 } def getHtmlText(url): try: r = requests.get(url,timeout = 30,head... 阅读全文
posted @ 2018-02-09 15:43 Assassin_poi君 阅读(717) 评论(0) 推荐(0) 编辑
摘要: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... 阅读全文
posted @ 2018-02-04 21:07 Assassin_poi君 阅读(241) 评论(0) 推荐(0) 编辑
摘要:#define MAXN 1000005char s[MAXN];//原字符串char New[2*MAXN];//处理过后得到的新字符串int p[2*MAXN];//记录以每个字符为中心的最长回文长度+1,注意是+1后的结果//这里为什么多出1一定要想明白,很重要... 阅读全文
posted @ 2018-02-01 13:41 Assassin_poi君 阅读(116) 评论(0) 推荐(0) 编辑
摘要:Andy the smart computer science student was attending an algorithms class when the professor asked the students a simple question, "Ca... 阅读全文
posted @ 2018-02-01 13:36 Assassin_poi君 阅读(110) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示