public class Swap2 { public static void Swap2 (IDemo a, IDemo b) { int temp = a.i; a.i = b.i; b.i = temp; } public stati... ...
分类:
其他好文 时间:
2017-05-15 12:02:55
阅读次数:
143
正文 可变参数,必须最为参数的最后一个参数;可变参数只能有一个; c#可变参数例子: class Program { static void Main(string[] args) { Test t = new Test(); t.say("li", "wang"); Console.Read(); ...
分类:
编程语言 时间:
2017-05-15 12:00:06
阅读次数:
220
matplotlib 1、安装matplotlib ① linux系统 ...
分类:
编程语言 时间:
2017-05-15 11:12:48
阅读次数:
130
content-type 媒体类型,即MIME类型,包括媒体格式和编码两部分 例如:Content-Type:text/html;charset:utf-8 常见的媒体格式类型如下: text/html : HTML格式text/plain :纯文本格式 text/xml : XML格式image/ ...
分类:
Web程序 时间:
2017-05-15 10:10:08
阅读次数:
201
class Solution(object): def multiply(self, num1, num2): """ :type num1: str :type num2: str :rtype: str """ n1 = len(num1) n2 ... ...
分类:
其他好文 时间:
2017-05-15 10:06:00
阅读次数:
140
区间$dp$。 倒着考虑这件事件,肯定有最后一个取走的数字,假设是$a[k]$,那么最后一次取走的价值肯定是$a[0]*a[k]*a[n+1]$,之前取走的价值和为$[1,k-1]$的价值加上$[k+1,n]$的价值。 设$dp[L][R]$表示取完区间$[L,R]$的最大价值,$dp[L][R] ...
分类:
编程语言 时间:
2017-05-15 10:04:58
阅读次数:
290
Servlet的生命周期是由servlet的容器来控制的。分为3个阶段:初始化阶段、运行阶段、销毁阶段。 初始化阶段: 初始化阶段步骤: Ø Servlet容器加载servlet类,把它的. Class文件中的数据读到内存中。 Ø Servlet容器创建servletConfig对象。servlet ...
分类:
其他好文 时间:
2017-05-15 09:56:49
阅读次数:
210
【新发地寻柑桔经销商】一箱柑桔果,两地父子情。四赴新发地,八方经销商。 【新发地寻柑桔经销商】 一箱柑桔果,两地父子情。 四赴新发地,八方经销商。 ...
分类:
其他好文 时间:
2017-05-15 09:56:40
阅读次数:
124
// JavaScript Document $(document).ready(function(e) { //找到ID=SANJI的DIV,造三个下拉扔进去 var str = ""; $("#sanji").html(str); //加载省的数据 Hsheng(); //加载市的数据 Hshi... ...
分类:
Web程序 时间:
2017-05-15 09:55:50
阅读次数:
130