Jinfeng's Blog

Life is like a box of chocolate !

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2017年3月17日

摘要: def getHtml(url,tout): import requests try: r=requests.get(url,timeout=tout) r.encoding=r.apparent_encoding r.raise_for_status() return r.text except: ... 阅读全文
posted @ 2017-03-17 20:44 JinfengXie 阅读(104) 评论(0) 推荐(0)

2017年3月8日

摘要: 求一个数组和最大的非空连续子数组,代码使用暴力求解和递归分治求解 阅读全文
posted @ 2017-03-08 20:48 JinfengXie 阅读(115) 评论(0) 推荐(0)

2016年1月28日

摘要: 1 public class Stack { 2 private int maxSize=2;//栈容量,初始为2,(用于表达式求值,操作数栈) 3 private int top=-1;//栈顶指针 4 private int[] data=new int[maxSize];//数据 5 //判空 阅读全文
posted @ 2016-01-28 20:09 JinfengXie 阅读(227) 评论(0) 推荐(1)