Python读写文件1. open 使用open打开文件后一定要记得调用 文件对象的close()方法。比如可以用try --finally语句来确保最后能关闭文件。>>>f1 = open('thisfile.txt')>>>try: f1.read() finally: f1.c...
分类:
编程语言 时间:
2014-06-29 00:28:54
阅读次数:
296
参考了这个里面的代码http://bbs.csdn.net/topics/380084274一直报错06-16 23:58:50.698 26148-26161/com.example.myapplication.app W/ContentResolver﹕ Failed to get type f...
分类:
移动开发 时间:
2014-06-18 12:52:30
阅读次数:
267
Web Service It is based on SOAP and return data in XML form. It support only HTTP protocol. It is not open source...
头文件unistd.h是Linux/Unix的系统调用,包含了许多UNIX系统服务函数原型,如open、read、write、_exit、getpid等函数。在linux下能够编译通过的包含此头文件的程序,在VC下编译时出现了如下问题 fatal error C1083: Cannot open i...
分类:
其他好文 时间:
2014-06-18 10:31:54
阅读次数:
244
今天更新了android studio,从0.5.3升级到0.6.1版本,结果在IDE中编译时没有问题,但是在命令行时编译就会出现以下错误:
:app:compileTestDebugJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:c...
分类:
移动开发 时间:
2014-06-18 06:40:05
阅读次数:
395
开放封闭原则(Open Closed Principle)表述为 "软件实体(类、模块、函数等)应对扩展开放,但对修改封闭。(Software entities (classes, modules, functions, etc.) should be open for extension, but...
分类:
其他好文 时间:
2014-06-17 21:14:56
阅读次数:
268
new function() {
var ws = null;
var connected = false;
var serverUrl;
var connectionStatus;
var sendMessage;
var connectButton;
var disconnectButton;
var sendButton;
var open = function(...
分类:
数据库 时间:
2014-06-17 19:35:50
阅读次数:
220
NFS客户端配置为开机自动挂载时,系统启动报错。报错信息类似:mount:mount:mounttoNFSserver‘172.16.1.254‘failed:mount:SystemError:Noroutetohost.原因:网络启动后需要对网络内路由表进行“学习”。在未完成路由表学习之前启动netfs服务会报错。解决方法:延后netfs启动时..
分类:
其他好文 时间:
2014-06-17 18:42:04
阅读次数:
214
今天在公司搭建PHP的开发环境,我用的是xamppwin64的集成环境。以前在win32的平台上没有什么问题,但是今天蛋疼加便秘,各种问题出现。非常的不爽。我们一般用xampp来做php开发肯定要修改xampp/apache/conf/httpd.conf这个文件。像我就修改了这两个地方然后启动Apache,在浏览..
分类:
其他好文 时间:
2014-06-17 17:25:44
阅读次数:
236
--创建过程,参数为sys_refcursor,为out型
create or replace procedure aabbsys_refcursor(o out sys_refcursor) is
begin
open o for select * from basplumain;
end;
---
--测试过程,使用aabbsys_refcursor传出的值
create or repla...
分类:
其他好文 时间:
2014-06-17 16:04:12
阅读次数:
180