urllib2.urlopen(url[, data][, timeout])Open the URL url, which can be either a string or a Request object.data may be a string specifying additional d...
分类:
编程语言 时间:
2014-07-22 23:08:32
阅读次数:
219
/** * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
分类:
数据库 时间:
2014-07-22 22:45:32
阅读次数:
355
面向对象的原则: 开闭原则(Open Closed Principle,OCP) 里氏代换原则(Liskov Substitution Principle,LSP) 依赖倒转原则(Dependency Inversion Principle,DIP) 接口隔离原则(Interface Seg...
分类:
其他好文 时间:
2014-07-22 22:43:32
阅读次数:
182
package com.tongyan.common.db;/** * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "Licens...
分类:
数据库 时间:
2014-07-22 22:42:12
阅读次数:
343
my $line; my $content; open (FN,"D:\\PerlDemo\\parse.xml") or die "not found $!"; while($line=){ next if $. < 5; last if $. >10; $content.=$line; } close(FN); print "$content \n"; my $K=; my @R =qw...
分类:
其他好文 时间:
2014-07-22 22:37:53
阅读次数:
225
利用js打开一个新页面,而不是一个新窗口。在网上各种东西啊,蛋疼了半天,还白疼了。。后来看到a标签有target属性,然后又发现window.open()的第二个参数是target,然后我笑了(er'zhe)w3school上的target属性,点我,大家可以打开新页面了,也可以打开新窗口了。我只写...
Failed to load libGL.soerror libGL.so: cannot open shared object file: No such file or directory启动emulator的时候有如上错误,解决方案:64-bit Ubuntu 12.04.$ sudo apt...
分类:
其他好文 时间:
2014-07-22 22:36:35
阅读次数:
223
# -*- coding: utf-8 -*-import ConfigParserconfig = ConfigParser.ConfigParser()config.readfp(open('ixamail.ini'))a = config.get("host","smtp_server")pr...
分类:
其他好文 时间:
2014-07-22 22:36:14
阅读次数:
168
安装流程1。以系统管理员开启命令提示符(命令提示字符)2挂载windows8.1异3,在命令提示符下输入Dism /online /enablefeature/featurename:NetFx3 /All /Source:x:\sources\sxs /LimitAccessps; X:ISO挂载...
分类:
Windows程序 时间:
2014-07-22 22:34:53
阅读次数:
2426
1.首先打开终端,cd到cocos2d-x-3.2目录下,运行命令./setup.py ,根据提示设置相应的ndk路径NDK_ROOT,sdk路径ANDROID_SDK_ROOT,ant路径ANT_ROOT,cocos2d路径COCOS_CONSOLE_ROOT
= “cocos2d-x-3.2/tools/cocos2d-console/bin”,也可以用open -t ~/.bash_pr...
分类:
其他好文 时间:
2014-07-22 22:33:54
阅读次数:
185