摘要: Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means t 阅读全文
posted @ 2018-09-11 16:08 locke_hu 阅读(124) 评论(0) 推荐(0) 编辑
摘要: There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0)after it 阅读全文
posted @ 2018-09-11 15:41 locke_hu 阅读(265) 评论(0) 推荐(0) 编辑
摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2018-09-11 15:08 locke_hu 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 知识点 变量的定义 变量的命名 变量的赋值 变量的类型 阅读全文
posted @ 2018-07-22 21:19 locke_hu 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 因为使用Jupyter Notebook用鼠标选择菜单影响效率,遂将快捷命令记录于此 转自:http://blog.konghy.cn/2017/05/04/jupyter-notebook-hotkeys/ 命令模式快捷键(按 Esc 键开启): 编辑模式快捷键( 按 Enter 键启动): 阅读全文
posted @ 2018-06-27 23:21 locke_hu 阅读(12506) 评论(1) 推荐(1) 编辑
摘要: 参考:https://cuiqingcai.com/5545.html XPath XML Path Language 在XML文檔中查找信息,同樣適用于HTML文檔 使用路徑選擇表達式的方式查找信息 XPath常用规则 nodename:选取次节点的所有子节点 /:从当前节点选取直接子节点 //: 阅读全文
posted @ 2018-06-27 22:47 locke_hu 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 使用selenium调用webdriver的时候报错。 output: 提示chromedriver需要加入环境变量。 查找chromedriver.exe未果,遂下载。 下载地址:http://npm.taobao.org/mirrors/chromedriver/ 贴心提示: chromedri 阅读全文
posted @ 2018-06-21 22:16 locke_hu 阅读(616) 评论(0) 推荐(0) 编辑