MainActivity如下:
package cc.c;
import java.util.List;
import android.os.Bundle;
import android.os.Process;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Bu...
分类:
移动开发 时间:
2014-06-05 10:47:50
阅读次数:
299
【开胃小菜】
当提到python中strip方法,想必凡接触过python的同行都知道它主要用来切除空格。有以下两种方法来实现。
方法一:用内置函数
#
if __name__ == '__main__':
str = ' Hello world '
print '[%s]' %str.strip()
#
方法二:调用string模块中方法
#
import s...
分类:
编程语言 时间:
2014-06-05 09:27:48
阅读次数:
330
首先下载lxml, http://www.lfd.uci.edu/~gohlke/pythonlibs/ ,然后添加引用
from
lxml
import _elementpath
as
DONTUSE
from
lxml
import etree
具体示例:
1.添加命名空间
#set namespace
nsmap = {"xsi":
"h...
分类:
编程语言 时间:
2014-06-05 07:54:48
阅读次数:
441
web.xml中配置Filter: jsessionid
cn.iautos.mall.filter.RemoveUrlSessionFilter jsessionid /* java代码如下:package
cn.iautos.mall.filter;import ...
分类:
Web程序 时间:
2014-05-31 17:08:04
阅读次数:
253
这几天都有一些任务要跟, 把ios的学习拉后, 看看要抓紧咯,
看看轮到的学习的是UITableView。BIDViewController.h#import @interface BIDViewController :
UIViewController@property (copy, nonato...
分类:
移动开发 时间:
2014-05-31 11:27:25
阅读次数:
386
javaIO流实现文件读写文件写入:InputStreamReader
BufferedReader文件读取:FileOutputStream package javatest.basic22;import
java.io.BufferedReader;import java.io.File;imp...
分类:
编程语言 时间:
2014-05-31 07:52:14
阅读次数:
250
package com.my.login;import java.io.File;import
java.io.FileInputStream;import java.io.IOException;import
java.io.InputStream;import java.text.Decimal...
分类:
编程语言 时间:
2014-05-31 06:06:10
阅读次数:
295
Java反射机制package com.utils;import
java.beans.Introspector;import java.beans.PropertyDescriptor;import
java.lang.reflect.Field;import java.lang.reflect....
分类:
编程语言 时间:
2014-05-31 05:00:29
阅读次数:
235
package com.annotation;import
java.lang.annotation.Retention;import java.lang.annotation.Target;import static
java.lang.annotation.ElementType.*;impor...
分类:
编程语言 时间:
2014-05-31 04:52:26
阅读次数:
289
1、import java.util.List;import
android.os.Parcel;import android.os.Parcelable;/** * 1)writeToParcel
方法。该方法将类的数据写入外部提供的Parcel中。 * 2)describeContents方法。...
分类:
移动开发 时间:
2014-05-31 01:43:27
阅读次数:
531