@AV 2015.04
目前的问题
- 需求不明确,经常变更,缺少书面化的文档
- 重点不明确
//请求成功返回2XX | |
if (statusCode.startWith('2')) { | |
//请求成功,处理业务 | |
} else { | |
//5XX错误,服务器有问题 | |
if (statusCode.startWith('5')) { | |
//响应格式不定,显示网络错误或未知错误给用户 | |
} elseif (statusCode.startWith('4')) { | |
//4XX错误,输入有问题 | |
//4XX错误后端必须保证错误格式 |
gantt
dateFormat YYYY-MM-DD
title A股项目
section 基础
数据库设计 [元素,桢航] :active, base_db, 2015-04-11, 3d
前端调查选型[子龙,点圈] :active, base_front, 2015-04-11, 3d
url = urlparse.urlparse(url)._asdict() | |
query = urlparse.parse_qs(url['query']) | |
query['id'] = 1 | |
url['query'] = urllib.urlencode(query) | |
url = urlparse.urlunparse(url.values()) |
PHP:
echo md5(file_get_contents('test.torrent'));
//e699b0e7535cebc1b10de1613d6797fb
Python:
function testArray(array $array){ | |
sort($array); | |
$max = array_pop($array); | |
$arrLen = count($array); | |
$len = pow(2, $arrLen); | |
for($i = 0; $i < $len; $i++){ | |
$byte = sprintf('%0+'. $arrLen . 'b', $i); | |
$cache = array(); | |
for($j = 0; $j <$arrLen; $j++) { |