适配器模式的定义如下:将一个类的接口变换为客户端所期待的另一种接口,从而使原本因接口不匹配而无法在一起工作的两个类能够在一起工作。适配器模式又叫变压器模式、包装器模式。 适配器通常包含三个角色: Target目标角色:该角色定义需要转换为哪个目标角色,也就是期望接口。 Adaptee源角色:你想把谁 ...
分类:
其他好文 时间:
2018-10-02 20:31:36
阅读次数:
185
当然不是全部的题啦,我只是整理一下昨天做的两道题,写了个标题其实只是凑字数的 CF1045B _pfy_大佬写的blog很清楚的然而我并没有看懂,于是自己瞎鸡巴yy了一下,可知若一个数X不能被表示出来,那么X所有的表示方法都在A集合中,如a1,a2,a3······an-1,an-2中若a1+ai不 ...
分类:
其他好文 时间:
2018-10-02 18:01:58
阅读次数:
138
1、innerHTML: 也就是从对象的起始位置到终止位置的全部内容,包括Html标签。 2、innerText: 从起始位置到终止位置的内容, 但它去除Html标签 举例: <div id="test"> <span style="color:red">test1</span> test2</di ...
分类:
Web程序 时间:
2018-10-02 17:55:41
阅读次数:
220
项目名称:视频网站项目 开发语言:HTML,CSS(前端),JavaScript,NODEJS(expres)(后台) 数据库:MySQL 开发环境:Win7,Webstorm 上线部署环境:Linux服务器 在线演示站点:http://vip.52tech.tech Github源码:https: ...
分类:
Web程序 时间:
2018-10-02 17:37:10
阅读次数:
325
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-10-02 14:09:16
阅读次数:
153
use Net::HTTP::GET; my @chars = ; my $count = 0; for @chars X @chars X @chars X @chars -> $check { my $target_check = $check.join; my $url = "http://w... ...
分类:
Web程序 时间:
2018-10-02 14:06:01
阅读次数:
207
Given a list of words and two words word1 and word2, return the shortest distance between these two words in the list. For example,Assume that words = ...
分类:
其他好文 时间:
2018-10-02 14:00:51
阅读次数:
174
We are given N different types of stickers. Each sticker has a lowercase English word on it. You would like to spell out the given target string by cu ...
分类:
其他好文 时间:
2018-10-02 13:50:03
阅读次数:
152
作 者: 刘 超 导 师: 高井祥 教授申请学位: 工学博士 培养单位: 环境与测绘学院学科专业: 大地测量学与测量工程 研究方向: GNSS 灾害监测答辩委员会主席: 黄国满 研究院 评阅人: 原文:链接 ...
分类:
其他好文 时间:
2018-10-01 23:50:06
阅读次数:
315
在jsp页面中不能通过${list.size}取列表长度, 而是 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/j ...
分类:
其他好文 时间:
2018-10-01 21:40:19
阅读次数:
202