/** * Created by Administrator on 2017/12/2 0002. */import java.io.UnsupportedEncodingException;public class Base64 { /** * Chunk size per RFC 2045 se ...
分类:
其他好文 时间:
2018-08-02 19:22:46
阅读次数:
249
Angular—通用指令 Angular将通用指令包含在CommonModule模块中,当需要使用这些通用指令时,需要在模块中导入。 BrowserModule模块已经包含了CommonModule模块,所以当引入BrowserModule时,就可以使用了。NgClass 利用NgClass指令,可 ...
分类:
其他好文 时间:
2018-08-01 14:29:28
阅读次数:
180
POJ3335 半平面交裸题 c++ //poj3335 include include include define rep(i,a,b) for(int i=a;i 0) hp[m 1] = hp[i]; } n = m; } bool halfplaneinsert() { for(int i ...
分类:
其他好文 时间:
2018-07-31 01:28:05
阅读次数:
210
一 装饰器定义 装饰器:本质就是函数,一种增加函数或类的功能的简单方法,它可以快速的给不同的函数或者类插入相同的功能。 原则:(1)不修改被修饰函数的源代码。 (2)不修改被修饰函数的调用方式 装饰器 = 高阶函数+函数嵌套+闭包 二 实例:增加验证功能 三 嵌套装饰:插入两种不同类型的功能 ...
分类:
编程语言 时间:
2018-07-29 22:34:02
阅读次数:
233
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the max sum in th ...
分类:
其他好文 时间:
2018-07-29 12:57:04
阅读次数:
158
[TOC] HashMap概述 前面我们分析了基于数组实现的ArrayList和基于双向链表实现的LinkedList,它们各有优缺点:ArrayList查找元素快但是插入删除元素慢,LinkedList插入删除元素快但是查找元素慢。那么有没有一种数据对象能够做到高效的查询和 ...
分类:
其他好文 时间:
2018-07-28 11:51:14
阅读次数:
148
解决方法一: 调用: 解决方法二: 在Web.config下的<system.webServer>节点之间添加一下代码: ...
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 const int INF = 0x3f3f3f3f; 7 const int maxn = 100; 8 const double eps = 1e-6; 9 ... ...
分类:
其他好文 时间:
2018-07-27 10:10:30
阅读次数:
170
一 。 flask 中连接的数据库的组件 DButils 二 。 flask 中的 flask-session 组件 将Flask中的session由原来的默认写到加密cookie中,改成放置到其他数据源,如:redis/memcached/filesystem/mongodb/sqlalchemy ...
分类:
其他好文 时间:
2018-07-26 19:54:30
阅读次数:
202
Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators a ...
分类:
其他好文 时间:
2018-07-26 16:17:35
阅读次数:
199