摘要: /** * $t 是误差范围值 */ function squre($number ,$t){ $x1 = $number; $x2 = $number/2; while( abs($x1 - $x2) > $t){ $x1 = $x2; $x2 = ($x1 + $number/$x1)/2; } 阅读全文
posted @ 2017-01-13 14:57 hxyphp 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: 1,安装: #brew install supervisor 默认会安装在/usr/local/Cellar/supervisor目录 2,在etc下面新建supervisor.conf 文件,复制下面的代码(部分需要自行修改) [inet_http_server] port = 127.0.0.1 阅读全文
posted @ 2017-01-13 14:55 hxyphp 阅读(647) 评论(0) 推荐(0) 编辑