找到576个回复 (用户: xlm)
  • 老虎会游泳的虎字
    3757点击 / 2018-05-08发布 / 2018-05-09回复 / /
    @老子会游泳@老虎会游泳
    其实这是字形原因,
    a99a0211868037872b49d2f9ff7b14ce17888.png
    类似的还有
    “复”、“门”、“甩”、“将”、“户”、“房”、“骨”、“系”等。
    由于简体中文输入法强制使用简体中文字体,因而能显示简体中文版本的字形。
    由于某些历史原因,如果系统首选语言不是汉字文化圈内语言,在遇到汉字时通常会以繁体中文或日本语字体为首选字形,其次才是简体中文,再次是朝鲜语汉字和越南汉字。
    这些原因大致为:
    1.最早的有汉字的文本编码是日本的JIS标准
    2.虽然Big5编码比GB2312晚2年,但当时(上世纪80年代)港台的计算机使用量及市场远超过中国大陆
    3.80年代会简体中文的中国大陆人几乎都会繁体中文,但港台人未必会简体中文
    4.韩国、越南几乎不使用汉字
  • 挑战一下。
    我的(非CentOS):
    1c58278258e51a6f55ee3a22f2984faa268413.png
  • 本地回环也算上去了,这样流量就是双倍了。
  • 点击 / 未记录发布 / 2018-01-26回复 / /
    还用广告推广的链接,一点诚意都没有。
  • 围观一个不明觉厉的东西
    2556点击 / 2017-12-26发布 / 2017-12-26回复 / /
    IP + 1
  • 有没有靠谱的网上赚钱
    6169点击 / 2017-11-28发布 / 2017-11-29回复 / /
    开网店??
  • 靠多线程并发的肯定没有靠异步并发的并发量大,多线程并发的优势在于能更大程度的使用CPU完成一些复杂的运算。
  • 【帖子被站长屏蔽】
    7322点击 / 2017-11-21发布 / 2017-11-26回复 / /
    @姑娘等等丶,我感觉冗余代码还是有点多,有改进空间。
  • 买了台psp3000
    2092点击 / 2017-11-26发布 / 2017-11-26回复 / /
    感觉不如PSV。
  • 【帖子被站长屏蔽】
    7322点击 / 2017-11-21发布 / 2017-11-25回复 / /
    用了3小时写的:
    <?php
    class ReadMYDict {
    	private $str;
    	private $read_offset;
    	private $keywords;
    	private $acceptable_integer_chars;
        function __construct($input_str) {
            $this->str = $input_str;
            $this->read_offset = 0;
    		$this->keywords = array(',', '"', '\'', '(', ')', '[', ']', '{', '}');
    		$this->acceptable_integer_chars = explode(' ', '1 2 3 4 5 6 7 8 9 0');
    		$this->len = strlen($input_str);
    	}
    	public function parse() {
    		switch ($this->str[0]) {
    			case '[':
    				return $this->read_dict();
    			case '(':
    				return $this->read_list();
    			default:
    				throw new Exception('Not a valid PythonDict.');
    				return NULL;
    		}
    	}
        private function read_integer() {
    		$ret_val = '';
            while ($this->read_offset < $this->len) {
    			$char = $this->str[$this->read_offset];
    			if (in_array($char, $this->acceptable_integer_chars)) $ret_val .= $char;
    			else break;
    			$this->read_offset++;
    		}
    		if (!strlen($ret_val)) {
    			throw new Exception('Cannot parse integer on char.'.$this->read_offset);
    			return NULL;
    		}
    		return intval($ret_val);
    	}
    	private function read_string() {
    		$ret_val = '';
    		$read_end_char = $this->str[$this->read_offset];
    		if (!in_array($read_end_char, array('"', '\''))) {
    			throw new Exception('Unexcepted char.'.$this->read_offset);
    			return NULL;
    		}
    		while ($this->read_offset < $this->len - 1) {
    			$this->read_offset++;
    			$char = $this->str[$this->read_offset];
    			if ($char === $read_end_char) {
    				$this->read_offset++;
    				break;
    			}
    			$ret_val .= $char;
    		}
    		return $ret_val;
    	}
    	private function read_list() {
    		$ret_val = array();
    		if (!in_array($this->str[$this->read_offset], array('(', '{'))) {
    			throw new Exception('Unexcepted char.'.$this->read_offset);
    			return NULL;
    		}
    		$this->read_offset++;
    		while ($this->read_offset < $this->len) {
    			$next_char = $this->str[$this->read_offset];
    			if (trim($next_char) === '') {
    				$this->read_offset++;
    				continue;
    			}
    			if (in_array($next_char, $this->acceptable_integer_chars)) {
    				$next = $this->read_integer();
    				if ($next === NULL) return;
    				$ret_val[] = $next;
    			} elseif (in_array($next_char, array('"', '\''))) {
    				$next = $this->read_string();
    				if ($next === NULL) return;
    				$ret_val[] = $next;
    			} elseif (in_array($next_char, array('(', '{'))) {
    				$next = $this->read_list();
    				if ($next === NULL) return;
    				$ret_val[] = $next;
    			} elseif ($next_char === '[') {
    				$next = $this->read_dict();
    				if ($next === NULL) return;
    				$ret_val[] = $next;
    			} elseif ($next_char === ',') {
    				$this->read_offset++;
    			} elseif (in_array($next_char, array(')', '}'))) {
    				$this->read_offset++;
    				break;
    			} else {
    				throw new Exception('Unexcepted char.'.$this->read_offset);
    				return NULL;
    			}
    		}
    		return $ret_val;
    	}
    	private function read_dict() {
    		$ret_val = array();
    		if ($this->str[$this->read_offset] !== '[') {
    			throw new Exception('Unexcepted char.'.$this->read_offset);
    			return NULL;
    		}
    		$reading_title = TRUE;
    		$this->read_offset++;
    		$title = '';
    		while ($this->read_offset < $this->len) {
    			$next_char = $this->str[$this->read_offset];
    			if (trim($next_char) === '') {
    				$this->read_offset++;
    				continue;
    			}
    			if (in_array($next_char, $this->acceptable_integer_chars)) {
    				$next = $this->read_integer();
    				if ($next === NULL) return;
    				if ($reading_title) $title = $next;
    				else $ret_val[$title] = $next;
    				$reading_title = !$reading_title;
    			} elseif (in_array($next_char, array('"', '\''))) {
    				$next = $this->read_string();
    				if ($next === NULL) return;
    				if ($reading_title) $title = $next;
    				else $ret_val[$title] = $next;
    				$reading_title = !$reading_title;
    			} elseif (in_array($next_char, array('(', '{'))) {
    				$next = $this->read_list();
    				if ($next === NULL) return;
    				if ($reading_title) $title = $next;
    				else $ret_val[$title] = $next;
    				$reading_title = !$reading_title;
    			} elseif ($next_char === '[') {
    				$next = $this->read_dict();
    				if ($next === NULL) return;
    				if ($reading_title) $title = $next;
    				else $ret_val[$title] = $next;
    				$reading_title = !$reading_title;
    			} elseif ($next_char === ',') {
    				$this->read_offset++;
    				$reading_title = TRUE;
    			} elseif ($next_char === ']') {
    				$this->read_offset++;
    				break;
    			} elseif ($next_char === ':') {
    				$this->read_offset++;
    				$reading_title = FALSE;
    			} else {
    				throw new Exception('Unexcepted char.'.$this->read_offset);
    				return NULL;
    			}
    		}
    		return $ret_val;
    	}
    }
    $a = '(([90102:(["time":1511122453,"progress":79,]),90103:(["time":1509633774,"progress":2,]),60413:(["time":1511122445,"progress":0,]),60414:(["time":1511122445,"progress":0,]),60415:(["time":1511122445,"progress":0,]),90104:(["time":1510312173,"progress":1,]),"ver":1,20406:(["time":1507992271,"finished":1,]),20407:(["para":(["ti":594,]),"time":1511025692,"progress":64,]),51101:(["para":(["ti":906,]),"time":1511032636,"progress":238,]),51102:(["time":1507137233,"progress":0,]),51103:(["time":1507137233,"progress":0,]),51011:(["time":1510312173,"progress":1,]),51010:(["time":1510312173,"finished":1,]),20218:(["time":1509467678,"finished":1,]),20219:(["time":1509467965,"finished":1,]),20221:(["time":1509468024,"finished":1,]),20222:(["time":1509468030,"finished":1,]),20210:(["time":1511023570,"finished":1,]),20211:(["time":1511023578,"finished":1,]),20207:(["time":1511023538,"finished":1,]),50912:(["time":1511022575,"progress":1,]),80609:(["time":1510150701,"finished":1,]),80622:(["time":1510150622,"progress":1,]),80608:(["time":1510150622,"finished":1,]),50911:(["time":1509635493,"finished":1,]),50910:(["time":1508151042,"finished":1,]),50909:(["time":1508151042,"finished":1,]),50906:(["time":1507890831,"finished":1,]),"traces":({}),20109:(["time":1510402286,"progress":0,]),20108:(["time":1510402286,"progress":0,]),80513:(["time":1508849461,"finished":1,]),80514:(["time":1508849461,"progress":1,]),20111:(["time":1509227248,"finished":1,]),"lastest":({50403,20211,20210,}),80406:(["time":1511122445,"progress":1,]),80405:(["time":1511122445,"progress":1,]),80404:(["time":1511122445,"progress":1,]),30211:(["para":2,"time":1509021407,"progress":1,]),30213:(["time":1509226792,"finished":1,]),30201:(["time":1509021407,"finished":1,]),30207:(["time":1509467600,"finished":1,]),70113:(["failed":1,"time":1508150640,]),"update_ti":1511122445,90602:(["time":1509227628,"finished":1,]),70110:(["failed":1,"time":1508150640,]),80325:(["time":1508689999,"finished":1,]),30154:(["time":1508357218,"finished":1,]),30144:(["time":1508357214,"finished":1,]),30147:(["time":1509399083,"finished":1,]),30139:(["time":1508357214,"finished":1,]),80317:(["time":1507829680,"finished":1,]),80318:(["time":1507829680,"finished":1,]),30134:(["time":1508776731,"finished":1,]),30135:(["time":1508776731,"finished":1,]),30136:(["time":1508776731,"finished":1,]),30137:(["time":1508776731,"finished":1,]),30138:(["time":1508776731,"finished":1,]),30132:(["time":1509399083,"finished":1,]),30140:(["time":1509399083,"finished":1,]),30114:(["time":1507902017,"finished":1,]),30115:(["time":1508776919,"finished":1,]),30107:(["time":1507902017,"finished":1,]),30101:(["time":1507902017,"finished":1,]),30111:(["time":1508357214,"finished":1,]),30103:(["time":1508357218,"finished":1,]),30102:(["time":1508357390,"finished":1,]),51504:(["time":1510651636,"finished":1,]),51505:(["time":1510651636,"finished":1,]),"total":5183,51503:(["time":1507893961,"finished":1,]),51502:(["time":1507893961,"finished":1,]),51501:(["time":1507893961,"finished":1,]),10505:(["time":1511122445,"progress":0,]),10506:(["time":1511122445,"progress":0,]),40206:(["para":([]),"time":1511122445,"progress":0,]),90336:(["time":1507829631,"finished":1,]),90348:(["time":1508151043,"finished":1,]),50403:(["time":1511024177,"finished":1,]),90322:(["time":1509209473,"finished":1,]),90331:(["time":1508150640,"finished":1,]),90333:(["time":1510652404,"finished":1,]),90315:(["time":1508149428,"finished":1,]),90316:(["time":1510650252,"progress":14,]),90313:(["time":1509227002,"finished":1,]),90314:(["time":1510402299,"progress":2,]),90301:(["time":1510650154,"finished":1,]),40105:(["time":1511122445,"progress":0,]),40106:(["time":1511122445,"progress":0,]),90228:(["time":1509021201,"progress":1,]),90215:(["time":1507890889,"finished":1,]),90217:(["time":1507890889,"finished":1,]),90216:(["time":1507890890,"finished":1,]),90218:(["time":1507890891,"finished":1,]),]))';
    $b = new ReadMYDict($a);
    print_r($b->parse());
    好久没碰PHP了,都不太熟悉了。
    输出示例:
    5a199139714b2.png
  • 点击 / 未记录发布 / 2017-11-25回复 / /
    洛杉矶的小鸡,速度照样给力。
    5a195a65bfc41.png
  • 分享一个自建的kms服务器
    4428点击 / 2017-11-16发布 / 2017-11-17回复 / /
    @嚻,这个可以写成一键脚本激活的。
  • 移动宽带到期不注销会怎样?
    7990点击 / 2017-11-14发布 / 2017-11-16回复 / /
    宽带都是先给钱再用的,设备也是初装的时候就给了钱的,不应该存在欠费这种说法。
  • 分享一个自建的kms服务器
    4428点击 / 2017-11-16发布 / 2017-11-16回复 / /
    你这IP被墙了吧?
  • 如何理解正则表达式(.*?)中的*和?
    3265点击 / 2017-11-11发布 / 2017-11-11回复 / /
    https://zh.wikipedia.org/zh-cn/%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F#PCRE.E8.A1.A8.E8.BE.BE.E5.BC.8F.E5.85.A8.E9.9B.86
    解释的不能再清楚了。
  • 现在宽带真便宜
    1599点击 / 2017-11-03发布 / 2017-11-05回复 / /
    我这边的价格是你的10倍
  • 点击 / 未记录发布 / 2017-10-25回复 / /
    建议先全站登录可见,我还有好多回复贴要慢慢找
  • 用刷课软件被检测了
    3512点击 / 2017-10-24发布 / 2017-10-24回复 / /
    我大学的时候老师就支持我们用技术手段来刷在线课程
  • 用刷课软件被检测了
    3512点击 / 2017-10-24发布 / 2017-10-24回复 / /
    你这样还不如挂浏览器慢慢播放
  • nginx https 禁止ip访问
    2638点击 / 2017-09-16发布 / 2017-09-16回复 / /
    deny 100.69.25.124;