随笔分类 - 算法
摘要:class DEQueue { //存储 protected $_storage = array(); //入头 public function unshift($element) { return array_unshift($this->_storage, $element); } //入尾 ...
阅读全文
摘要:function write_file($filename, $content) { $lock = $filename . '.lck'; $write_length = 0; while(true) { if( file_exists($lock) ) { usleep(100); } else { ...
阅读全文

浙公网安备 33010602011771号