动态类型javascript是一种弱类型(动态语言)。这意味着在使用之前不用声明变量的类型,程序运行时,它的类型会自动确认。数据类型ECMAScript中有五种简单的数据类型:undefined,null,boolean,number,string。还有一种复杂数据类型——Object,object...
分类:
编程语言 时间:
2015-04-26 06:55:29
阅读次数:
141
publicclassTest{
publicstaticvoidmain(String[]args){
Classc;
c=Class.forName("K");
try{
Methodm=c.getMethod("aa",newClass[]{String.class});
m.invoke(c,newObject[]{"test"});
}catch(Exceptione)
{
e.printStackTrace();
}
}
}
分类:
编程语言 时间:
2015-04-26 01:51:15
阅读次数:
158
importdatetimeimporttimestring转datetimestr=‘2012-11-19‘date_time=datetime.datetime.strptime(str,‘%Y-%m-%d‘)date_timedatetime.datetime(2012,11,19,0,0)datetime转stringdate_time.strftime(‘%Y-%m-%d‘)‘2012-11-19‘datetime转时间戳time_time=time.mktime(date_time.t..
分类:
编程语言 时间:
2015-04-26 01:48:53
阅读次数:
190
#include<stdio.h>
#include<string.h>
#defineN4
#defineLEN20
voidmain()
{
inti,j;
chartemp[LEN],name[N][LEN]={"China","America","Austlia","Japan"};
for(i=1;i<=N;i++)
for(j=0;j<N-i;j++)
if(strcmp(name[j],name[j+1])>0)
{
str..
分类:
编程语言 时间:
2015-04-26 01:44:31
阅读次数:
172
权限 public class BootBroadcastReceiver extends BroadcastReceiver {static final String action_boot="android.intent.action.BOOT_COMPLETED"; @Override...
分类:
移动开发 时间:
2015-04-26 01:18:43
阅读次数:
235
浅析与C++string 有关的length()、size()、capacity()、resverse()、resize()、max_size()函数。
分类:
编程语言 时间:
2015-04-26 01:09:40
阅读次数:
163
代码: 1 static void Main(string[] args) 2 { 3 //在指定目录下创建指定的文件 4 File.Create(@"C:\Users\Administrator\Desktop\code.txt");...
分类:
其他好文 时间:
2015-04-25 23:56:06
阅读次数:
293
Substring with Concatenation of All Words
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concaten...
分类:
其他好文 时间:
2015-04-25 22:50:17
阅读次数:
158
//软件工程作业P37第三题import java.util.Arrays;//假设传入的数组是{how,are,you}public class Test0001 {public void theExchangeOfWords(String[] a){for (int i = 0; i < a.l...
分类:
其他好文 时间:
2015-04-25 22:45:57
阅读次数:
164
原题:Given a string, find the length of the longest substring without repeating characterFor example, the Longest substring without repeating letters fo...
分类:
编程语言 时间:
2015-04-25 22:41:48
阅读次数:
229