1:write(*,*)"string";write(unit=*,FMT=*)"string";write(unit=6,FMT=*)"string"。以上等价,6是默认输出位置,即屏幕。2:print*,"string"。Print只能对屏幕输出。3:integer(kind=4) a !f90...
分类:
其他好文 时间:
2015-03-20 17:54:45
阅读次数:
782
1 /// 2 /// 替换body中的img src属性 附加上域名 3 /// 4 /// 5 /// 6 protected virtual string ReplaceImg(string str) ...
分类:
Web程序 时间:
2015-03-20 17:53:06
阅读次数:
150
在Java中,特别是一个标准的POJO类,我们定义了一些属性,然后针对每个属性生成相应的getter和setter.例如:package com.demo;/** * 手机类 * @author liuzc */public class Phone { private String color; ....
分类:
其他好文 时间:
2015-03-20 17:47:54
阅读次数:
195
String 字符串常量StringBuffer 字符串变量(线程安全)StringBuilder 字符串变量(非线程安全)简 要的说, String 类型和 StringBuffer 类型的主要性能区别其实在于 String 是不可变的对象, 因此在每次对 String 类型进行改变的时候其实都等...
分类:
编程语言 时间:
2015-03-20 17:43:19
阅读次数:
130
组合模式有时又叫部分-整体模式在处理类似树形结构的问题时比较方便,看看关系图
public class TreeNode {
private String name;
private TreeNode parent;
private Vector children = new Vector();
...
分类:
其他好文 时间:
2015-03-20 16:35:24
阅读次数:
122
JNI开发中,java与c代码交互的时候通常有String和char*的转换,但是请注意,这两者不是一类。
找了个工具方法,作为备忘。
char* Jstring2CStr(JNIEnv* env, jstring jstr)
{
char* rtn = NULL;
jclass clsstring = (*env)->FindClass...
分类:
编程语言 时间:
2015-03-20 16:33:04
阅读次数:
199
python的数据类型分为mutable(可变) 和 immutable (不可变)
mutable : list ,dict
inmutable : int , string , float ,tuple...
mutable和immutable 字面意思理解就是说
数据可变和数据不可变
由于python的变量(variable)不需要声明,而在赋值的时候,变量可以重新赋值为任意值,这...
分类:
编程语言 时间:
2015-03-20 16:32:32
阅读次数:
205
基础加强第一天
1、先搭建一个比较丑的界面
2、电脑类
public class Computer
{
///
/// 存储出拳内容的属性
///
public string FistName { get; set; }
//方法
public int Play() ...
分类:
其他好文 时间:
2015-03-20 16:27:50
阅读次数:
111
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word ...
分类:
其他好文 时间:
2015-03-20 16:16:40
阅读次数:
124
// ApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"applicationContext.xml","spring-xxxxx.xml"}); // BeanFacto...
分类:
其他好文 时间:
2015-03-20 16:04:41
阅读次数:
115