描述Implement regular expression matching with support for '.' and '*'.'.' Matches any single character. '*' Matches zero or more of the preceding eleme ...
分类:
其他好文 时间:
2018-06-14 01:04:54
阅读次数:
179
问题描述: Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted by frequency from highest to lowest. If two w ...
分类:
其他好文 时间:
2018-06-13 11:46:05
阅读次数:
167
1、angr环境 问题:mkvirtualenv command not found 解决: 问题:You are using pip version 8.1.2, however version 10.0.1 is available.You should consider upgrading v ...
分类:
其他好文 时间:
2018-06-11 22:14:49
阅读次数:
358
简介 Page Object Model:页面对象模型,是Selenium中的一种测试设计模式,一个页面对象代表用户界面交互测试的一个区域。 使用page object来实现:测试、逻辑、数据、驱动相互分离。 使用页面对象模式的好处: 1. 创建可重用的代码,可以跨多个测试用例共享 2. 减少重复代 ...
分类:
其他好文 时间:
2018-06-11 13:59:36
阅读次数:
559
Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking num ...
分类:
其他好文 时间:
2018-06-10 23:02:18
阅读次数:
181
Given an integer array of size n, find all elements that appear more than ? n/3 ? times. Note: The algorithm should run in linear time and in O(1) spa ...
分类:
其他好文 时间:
2018-06-08 23:21:07
阅读次数:
291
message similar to: configuration option "php_ini" is not set to php.ini locationYou should add "extension=uploadprogress.so" to php.ini solution is s ...
分类:
Web程序 时间:
2018-06-08 23:18:31
阅读次数:
1461
HashMap和HashTable有什么不同?在面试和被面试的过程中,我问过也被问过这个问题,也见过了不少回答,今天决定写一写自己心目中的理想答案。 代码版本 JDK每一版本都在改进。本文讨论的HashMap和HashTable基于JDK 1.7.0_67。 1. 时间 HashTable产生于JD ...
分类:
其他好文 时间:
2018-06-07 21:58:00
阅读次数:
163
1. 综述 HLS(HTTP Live Streaming) 把整个流分成一个个小的基于 HTTP 的文件来下载,每次只下载一些。HLS 协议由三部分组成:HTTP、M3U8、TS。这三部分中,HTTP 是传输协议,M3U8 是索引文件,TS 是音视频的媒体信息。 关于 HLS 的详细介绍可参考: ...
分类:
其他好文 时间:
2018-06-04 23:25:00
阅读次数:
308
python3爬取Post页面时, 报以下错误 "POST data should be bytes or an iterable of bytes. It cannot be of type str." 解决方案: 需要在urlencode语句后加encode(encoding='UTF8') ...
分类:
其他好文 时间:
2018-06-04 17:44:53
阅读次数:
107