码迷,mamicode.com
首页 >  
搜索关键字:close    ( 9262个结果
文件I/O
打开文件open(name[,mode[,buffer]])文件模式r:读模式w:写模式a:追加模式b:二进制模式+:读/写模式Write()方法可将任何字符串写入一个打开的文件read()方法从一个打开的文件中读取一个字符串close()方法关闭文件对文件内容进行迭代1)按字节read()方法从一...
分类:其他好文   时间:2015-06-30 19:56:12    阅读次数:87
Leetcode 20 Valid Parentheses
Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must close in the correct ...
分类:其他好文   时间:2015-06-30 12:17:09    阅读次数:82
抽象类继承和接口
假设有一个抽象类Door,有两个方法open和close,此时我们想新建一个类AlarmDoor,需要具有报警功能,是该用抽象类继承还是使用接口?abstract class和interface的区别:1.定义上的区别abstract class Demo{ abstract void met...
分类:其他好文   时间:2015-06-30 10:16:20    阅读次数:97
Oracle PLSQL Demo - 08.定义显式游标[Define CURSOR, Open, Fetch, Close CURSOR]
declare v_empno scott.emp.empno%type; v_sal scott.emp.sal%type; cursor cur_emp is select t.empno, t.sal from scott.emp t;begin op...
分类:数据库   时间:2015-06-29 23:47:12    阅读次数:153
Oracle PLSQL Demo - 09.Open、Fetch遍历游标[Open, Fetch, Close Record CURSOR]
declare r_emp scott.emp%rowtype; cursor cur_emp is select t.* from scott.emp t;begin open cur_emp; loop fetch cur_emp ...
分类:数据库   时间:2015-06-29 23:42:44    阅读次数:174
Python重定向到文件
1.方式1__file__ = open(r'log.txt', 'a')print >>__file__, "hello, world!"__file__.close()2.方式2__stdout__ = sys.stdoutsys.stdout = open(r'log.txt', 'a')pr...
分类:编程语言   时间:2015-06-29 21:58:26    阅读次数:788
egret笔记之gui内设置动画效果
EgretWing->设计->窗口->动画 可以打开动画编辑面版。 首先需要针对当前UI界面设置各种状态。我们简单的设置 【close】:代表当前UI界面处于不可见状态。 【open】:代表当前UI界面处于可见状态。 在动画面版,选...
分类:其他好文   时间:2015-06-29 18:08:27    阅读次数:228
matlab画棋盘格程序
意义在摄像机标定中常常需要打印黑白棋盘格,在投影仪标定当中也常常需要投射棋盘格。MATLAB源代码close all; clear all; clc; width=1024 ; %pattern的宽 height=768 ; %pattern的高 img_final=zeros(height,width); reinforceconner=0 ;%是...
分类:其他好文   时间:2015-06-28 21:41:39    阅读次数:694
matlab画棋盘格程序
意义在摄像机标定过程中常常需要打印棋盘格程序,还有就是在投影仪标定当中常常需要投射和投影仪相同分辨率的patternmatlab源代码close all; clear all; clc; width=1024 ; %pattern的宽 height=768 ; %pattern的高 img_final=zeros(height,width); reinforce...
分类:其他好文   时间:2015-06-28 21:41:28    阅读次数:234
logistc regression练习(三)
% Exercise 4 -- Logistic Regressionclear all; close all; clcx = load('E:\workstation\data\ex4x.dat'); y = load('E:\workstation\data\ex4y.dat');[m, n] ...
分类:其他好文   时间:2015-06-27 21:10:12    阅读次数:301
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!