python try except else finally 执行顺序详细分析...
分类:
编程语言 时间:
2014-06-05 11:43:56
阅读次数:
305
通过HttpResponse 实现
首先在AndroidManifest中配置允许网络访问
然后实现代码
示例代码如下
String url = "http://www.baidu.com";
HttpGet request = new HttpGet(url);
try {
Ht...
分类:
移动开发 时间:
2014-06-05 08:30:08
阅读次数:
226
期间遇到了无法转value的值为int型,我采用try catch解决
str2 2
str1 1
str3 3
str1 4
str4 7
str2 5
str3 9
用的\t隔开,得到结果
str1 1,4
str2 2,5
str3 3,9
str4 7
我这里map,reduce都是单独出来的类,用了自定义的key
package com.kan...
分类:
其他好文 时间:
2014-06-05 06:52:38
阅读次数:
353
今天下午在看vlc 播放器的源码的时候,发现里面有一些特殊的注释信息,
比如: FIXME, 而且在eclipse中其颜色是不同的,所以我上网搜索了一下,发现一些特殊的注释
1 TODO eclispe中自动生成的部分代码也会有这个问题,比如try catch。意思是有待完成。
2 FIXME 代码中需要修改或者有待改进的代码
3 XXX 错误的代码,需要改正的...
分类:
其他好文 时间:
2014-06-05 01:26:33
阅读次数:
208
1.先安装soap扩展sudo yum install
php-soap2.安装openssL3.function issure($sn){//通过soap链接接口 进行确认是否是正确的sn码 try{
$client = new SoapClient("https://118.124.139.23...
分类:
其他好文 时间:
2014-06-03 07:32:16
阅读次数:
280
/**
* 采用httpclientPost请求的方式
*
* @param username
* @param password
* @return null表示求得的路径有问题,text返回请求得到的数据
*/
public static String httpclientPost(String username, String password) {
try ...
分类:
移动开发 时间:
2014-06-03 05:34:33
阅读次数:
222
判断网络文件 存在 3秒之内返回结果方法2:
//////判断网络文件是否存在1.5秒得到出结果如这样的格式http://191.168.1.105:8000/CPW/wmgjUpdate.7z/////////privateboolUrlIsExists(stringURL){try{System...
分类:
其他好文 时间:
2014-05-31 17:27:47
阅读次数:
164
public String createPDF(ProjectManageBase
projectManageBase) { Map map = new HashMap();// velocity模板中的变量 try {
//模版vm的路径 ...
分类:
编程语言 时间:
2014-05-31 07:57:43
阅读次数:
809
1 2 13 25 26 You can count on this being a dark
29 background with light text on top, but should try to make no 30 other
assumptions ...
分类:
移动开发 时间:
2014-05-31 06:12:59
阅读次数:
492
一般的try...catch...finally没什么好说的,但你可曾想过在try/catch/finally中throw/return?为什么要想这些没用的东西?因为这种东西曾出现在了笔试题目中。
分类:
编程语言 时间:
2014-05-30 23:42:06
阅读次数:
520