码迷,mamicode.com
首页 >  
搜索关键字:close    ( 9262个结果
JDBC学习笔记(18):通过代理模式来保持用户关闭连接的习惯
在前面的JdbcUtils包中,在关闭连接的时候使用了conn.close()方法,如果关闭了连接,那么放回连接池中的连接就成为无效的连接,为了规范用户关闭连接的习惯,使用代理模式来将连接放回连接池而又不改变用户的程序:将JdbcUtils工具包改变回原来的情形: 1 package com.xxy...
分类:数据库   时间:2015-04-05 17:11:08    阅读次数:139
Javascript and DOM学习
1.输出 document.write.();2.alert警告3.confirm消息对话框:当用户点击"确定"按钮时,返回true,取消时,返回false4.prompt提问5.window.open(,,)6.window.close();7.8.getElementById(""); 网页由标...
分类:编程语言   时间:2015-04-05 01:11:09    阅读次数:200
socket编程原理
socket编程原理1、问题的引入1) 普通的I/O操作过程:UNIX系统的I/O命令集,是从Maltics和早期系统中的命令演变出来的,其模式为打开一读/写一关闭(open-write-read-close)。在一个用户进程进行I/O操作时,它首先调用“打开”获得对指定文件或设备的使用权,并返回称...
分类:其他好文   时间:2015-04-04 10:39:27    阅读次数:203
python 跳板机程序
[root@localhost~]#cat/home/python/term_console.py#!/usr/bin/envpythonimportosip_file=‘ip.txt‘log_file="/home/python/a.txt"ip_dic={}num=0f=file(ip_file)whileTrue:num+=1line=f.readline()iflen(line)==0:breakip_dic[num]=line#printlinef.close()whileTru..
分类:编程语言   时间:2015-04-03 11:33:57    阅读次数:188
天池,改为开发包所需的文件输入
#!/usr/bin/env python fl = open('not.csv') wr = open('changeTpye.csv','w+') for key in fl:   pt = key.split(',')   wr.write(pt[0]+'::'+pt[1]+'::'+pt[2]+'::'+pt[4])   print pt fl.close() wr.clo...
分类:其他好文   时间:2015-04-03 09:27:03    阅读次数:92
天池,删除地址
#!/usr/bin/env python fl = open('train.csv') wrr = open('no_time_but_add.csv','w+') for key in fl:   pt = key.split(',')   if pt[2] != '':     wrr.write(key)     print pt fl.close() wr.close(...
分类:其他好文   时间:2015-04-03 09:25:28    阅读次数:151
图像特效——摩尔纹 moir
%%% Moir%%% 摩尔纹clc;clear all;close all;addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm');I=imread('4.jpg');I=double(I);Image=I;% Image.....
分类:其他好文   时间:2015-04-02 22:34:15    阅读次数:191
Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all vali...
分类:其他好文   时间:2015-04-02 21:00:04    阅读次数:105
Winform基础知识
1.关于登陆部分this.DialogResult = DialogResult.OK;this.Close();FrmLogin login = new FrmLogin(m_CurUser);if (login.ShowDialog() == DialogResult.Cancel){Appli...
分类:Windows程序   时间:2015-04-02 11:38:34    阅读次数:159
python读取并切分
#!/usr/bin/env python import numpy as np fl = open('te.csv') try:   text = fl.readline( ) finally:   print text   #fl.close( ) #print text #data = np.loadtxt("\usr\data\tianchi_mobile_recomm...
分类:编程语言   时间:2015-04-02 09:08:44    阅读次数:195
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!